Ask YC: How do you build a bookmarklet?
4 comments
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.This one address your question: http://betterexplained.com/articles/how-to-make-a-bookmarkle...
The obvious choice: http://www.google.com/search?q=how+to+build+a+bookmarklet
Have you seen this wikipedia page? It has some good references:
http://en.wikipedia.org/wiki/Bookmarklet
The basic idea is that you create a link on your page that points to a "javascript:" URL. This link can become a bookmark just like any other link. The javascript in the link's URL implements your bookmarklet functionality.
http://en.wikipedia.org/wiki/Bookmarklet
The basic idea is that you create a link on your page that points to a "javascript:" URL. This link can become a bookmark just like any other link. The javascript in the link's URL implements your bookmarklet functionality.
Any help?