Code for 'add to favorites'
Post by webgear on
Aug 11, 2006 5:56:22 PM CST
The code below shows a link on your web page to allow a visitor to add it to the favorites menu by clicking on the link.
<script language="JavaScript" type="text/javascript"> function addBookmark(){ if (document.all) {window.external.AddFavorite(location.href, document.title);} else if (window.sidebar){window.sidebar.addPanel(document.title, location.href, "");} } </script> <a href="JavaScript:addBookmark();" onclick="addBookmark();">Add to your favorites</a>
|
|