Home > Windows > Common Technique
Search:
Add to Favorites - JavaScript Tip
Hits:28

Copy the script below and then paste it into a blank note pad (or other text editor) page. Then re-copy it to your web page.
  This part goes in the < Head > section.

<script>
function BookmarkPageNameHere()
{
if (document.all)
{
window.external.AddFavorite(location.href,'PageNameHere');
}
else
{
alert("Netscape users: To add this site to your bookmarks click 'OK' then press (CTRL-D)");
}
}
</script>
--------------------------------------------------------------------------------
Copy the script below and then paste it into a blank note pad (or other text editor) page. Then re-copy it to your web page.

This goes in the < Body > section where you want the link to be located:

<a href="javascript:void(0)" onClick="BookmarkPageNameHere
();">Bookmark this page</a>
Hide Email Address from Spam Harvesters:
<SCRIPT language="javascript">
<!--
var contact = "Contact Us"
var email = "webmaster"
var emailHost = "yourname.com"
document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+ ">" + contact + "</a>" + ".")
//-->
</SCRIPT>

Home | About Us | Privacy Policy
Copyright 2007-2017 RegistryWinner.com. All rights reserved.