hey all
im trying too add a bookmark me button on my page and fell i am lost
i downloaded the following code from a website
bookmark(address,sitename) {
if (window.sidebar) {
window.sidebar.addPanel(sitename, address,"");
} else if( document.all ) {
window.external.AddFavorite(address, sitename);
} else if( window.opera && window.print ) {
return true;
}
}
it also says to place this in the html header
script type="text/javascript" src="addToFavorites.js"></script>
and this in the body
<a href="#" onclick="bookmark('http://javascript.internet.com/','JavaScript Source')">Bookmark our site!</a>
i know it sounds bumb but not overly sure how to do this?
thanks
bluerovers
www.bluerovers.co.nz
im trying too add a bookmark me button on my page and fell i am lost
i downloaded the following code from a website
bookmark(address,sitename) {
if (window.sidebar) {
window.sidebar.addPanel(sitename, address,"");
} else if( document.all ) {
window.external.AddFavorite(address, sitename);
} else if( window.opera && window.print ) {
return true;
}
}
it also says to place this in the html header
script type="text/javascript" src="addToFavorites.js"></script>
and this in the body
<a href="#" onclick="bookmark('http://javascript.internet.com/','JavaScript Source')">Bookmark our site!</a>
i know it sounds bumb but not overly sure how to do this?
thanks
bluerovers
www.bluerovers.co.nz
Comment