Book Marklet
It turns out that you can put JavaScript in bookmarks just by making the "protocol" part of the URL "javascript".
These bookmarks can consequently be used as a kind of macro to extend the surf and search capabilities of WebBrowsers. Things that bookmarklets can do include:
-
Modifying the way you see someone else's webpage
-
Extracting data from a webpage
-
Searching more quickly, and in ways not possible with a search engine
-
Navigating in new ways
Examples:
Instructions:
-
Copy the text of the link, say: javascript:alert("foo")
-
Create a new bookmark, probably somewhere on your "Personal Toolbar"
-
Set the URL to the whole thing -- javascript:alert("foo")
-
Enjoy (although that particular one is not very enjoyable).
Contributors: FridemarPache, a WikiGnome
CategoryCoding