- Impact
- 46,458
This simple script will create a link that adds the current page to the users bookmark or favorites folder in IE & Firefox
Code:
<script language="JavaScript1.2" type="text/javascript">
function addBookmark(title,url) {
if (window.sidebar) {
window.sidebar.addPanel(title, url,"");
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
</script>
<a href="javascript:void(addBookmark(document.title, window.location.href));">Bookmark Us</a>