JS File:
- Code: Select all
// JavaScript Document
<!--
/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
-->
HTML File:
- Code: Select all
//HEAD
<SCRIPT SRC="bookmark.js" TYPE="text/javascript"></SCRIPT>
//BODY
<A HREF="javascript:bookmarksite('The name of the site here', 'The URL')" TITLE="Bookmark us!" CLASS="Addtofavs">BOOKMARK US!</a>
Now the trouble i get with this is when i use it in FireFox and click the link, it bookmarks it but it also checks the "Load this bookmark in sidebar". How do i stop it from doing this?


