How to add a bookmark this page button?

I want a button like the one shown here: http://minecraft-ids.grahamedgecombe.com/, or something similar.

Here's an example:

<span style="cursor: hand; text-decoration: underline;" onclick="window.external.AddFavorite(loc… Document.title);">
Click here to add this page to your favorites</span>

Keep in mind it won't work in all browsers.

This is the line of code that the page used to display that link.

<div id="bookmarklet">Drag to your bookmarks bar: <a href="http://minecraft-ids.grahamedgecom… ID List</a></div>