Bookmarklet example. Add this bookmarklet to the location field of a new bookmark.
javascript:(function(){alert("Hello, World!");}());