We could easily add a bookmark this site link or add to your favorite sites link using javascript by adding the following code to your website:
<script language="javascript">
function addBookmark()
{
bookmarkurl = "http://www.tildemark.com";
bookmarktitle="Tildemark blogs";
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
else if ( window.sidebar ) {
window.sidebar.addPanel(bookmarktitle, bookmarkurl,"");
}
</script>
You can then place your bookmark link by adding an onClick function on your anchor tag like this:
<a href="javascript:addBookmark();">Bookmark this page!</a>
Here's a sample code:
Bookmark this page!
Please note that this code is browser dependent.
Leave a comment