|
|
|
JAVASCRIPT - Bookmark This Site Code
|
1.) Add this code segment to your html code.
<SCRIPT LANGUAGE="JavaScript">
function bookmark(url, description)
{
netscape="Netscape User's hit CTRL+D to add a bookmark to this site."
if (navigator.appName=='Microsoft Internet Explorer')
{
window.external.AddFavorite(url, description);
}
else if (navigator.appName=='Netscape')
{
alert(netscape);
}
}
//-->
</SCRIPT>
2.) Add the following line of code to your html
wherever you would like the bookmark link to appear. Remember to change
the bold typeface to your site
<a href="javascript:bookmark(' The Address You'd Like
Bookmarked ',' The Title of Your Site ');">Bookmark this
Site</A>
|
|
|
|
|
|