Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bookmark in Netscape 1

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
How do I make an "Add to bookmarks" button that will work in netscape?

[conehead]
 
Try this ConeHead...


<SCRIPT language="Javascript">

browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion);

if (browser_name == "Netscape" && browser_version >= 3.0)
{
document.write("<BLINK><font size=+0 color=white face=tahoma>To Bookmark This Page! Please hit \"Ctrl-d\"</font></BLINK>");
}
else
{
document.write("<form>");
document.write("<input type=\"button\" value=\"Click here to add to your Favorites!\" onclick=\"window.external.AddFavorite(top.location.href,top.document.title)\">");
document.write("</form>");
}
</SCRIPT>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top