1 2 3 var bookmarkurl="Add full URI here" 4 var bookmarktitle="Add your title here" 5 6 function addbookmark(){ 7 if (document.all) 8 window.external.AddFavorite(bookmarkurl,bookmarktitle)//IE 9 window.sidebar.addPanel( bookmarktitle, bookmarkurl, '' );//Moz 10 } 11 12 //add javascript:addbookmark(); to the HTML to call the function
You need to create an account or log in to post comments to this site.