How to make a ‘Digg this’ link in a webpage

Although there’s a Digg widget on their website I find it annoying. It’s in javascript and slow to load and it shows an error when I’m testing pages on my local machine which aren’t accessible on the web.

The title is url encoded.

<a target=”_blank” href=”http://digg.com/submit?url=http://yoururlhere/&amp;title=This+is+the+title”>Digg this</a>

The ampersand “&” between the parameters is HTML encoded which is a bit fussy but correct.

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

Leave a Comment