It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Bookmark us script

Bookmark us script

Postby killer-kurt on Wed Mar 12, 2008 1:40 pm

Hey i got this bookmark us script from dynamic drive:

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?
killer-kurt
 
Posts: 10
Joined: Wed Mar 12, 2008 12:04 pm
Location: Wales UK

Who is online

Users browsing this forum: No registered users and 3 guests