WebsiteGear Logo Log In
New User? Sign Up
About | Contact | FAQ
Home Discussion Forums Website Development HTML & DHTML
New Post New Post | Report Abuse Report Abuse


Code for 'add to favorites'
Post by websitegear 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>





Submit To Slashdot Slashdot | Submit To Digg.com Digg | Save in del.icio.us Del.icio.us | Submit To Reddit Reddit
REPLIES & COMMENTS Post a Reply
Comment by jingle33 on Aug 21, 2009 12:09:21 PM CST Report Abuse
Thanks. I needed it.
LATEST FORUM POSTINGS
Nav How to develop a Flxexible Web Design | Mar 5, 2013
Nav Website comments on updates / improvements please | Feb 28, 2013
Nav WebsiteGear Introduces Unlimited Web Survey Plan | Dec 4, 2012
Nav HTML TAGGING PROJECT CONVERSION 100% QUALITY | Nov 28, 2012
Nav Backup Your Files, Photos, Music online For Free | Nov 25, 2012
Nav 5 common link building mistakes | Aug 27, 2011
Nav How to convert psd into html? | Jan 15, 2011
Nav How to choose the right PHP Framework for web deve | Jan 12, 2011
FORUM SEARCH

FEATURED NEWS | POPULAR NEWS
Submit News | View More News View More News