News for hackers. Stuff that matters.
Re:Ask YC: How do you build a bookmarklet? by bazookaaa on Wednesday June 04, 2008 @05:42AM (#208741)
Looking at del.icio.us's bookmarklet may be a good start:

  javascript:location.href='http://del.icio.us/post?v=4;url='+encodeURIComponent(location.href)+';title='+encodeURIComponent(document.title.replace(/%5E%5Cs*%7C%5Cs*$/g,''))
Basically, it redirects the browser to http://del.icio.us/post?v=4 and passes two parameters to the URL: "url" and "title" which just contains the url and the website title of the previous website you were on.

There are no comments on this comment yet.