whos got me a bookmark code that works in ie and firefox? thanks
bookmark code for ie and firefox
Collapse
X
-
Code:<script type="text/javascript"> function bookmarksite(title,url){ if (window.sidebar) // firefox window.sidebar.addPanel(title, url, ""); else if(window.opera && window.print){ // opera var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } else if(document.all)// ie window.external.AddFavorite(url, title); } </script>Code:<a href="javascript:bookmarksite('Page Name', 'http://www.yoururl.com')"> -
-
Boobmark fucking rocks. Sending me tons of FREE traffic! Thanks, guys!"Gonna scare you up and shoot you
Cause Mister Charlie told me so"

Comment
-
Comment
-
bashbug:
Yes it does, which is actually the only way in Firefox (done that way to protect users)... UNLESS You code up a script to do an "artificial click", I've seen it done but can't guide on that.
Anyways, it should be sufficient since it'll still appear in FF's normal bookmarks as well - I think... lol
~¤~ MORE MONEY ~¤~ VOD? XoD! ~¤~ 
~¤~ ICQ# 9828 2461 ~¤~
Comment
-
Comment
-
that works finefunction bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
<a href="javascript:bookmarksite('TITLE', URL')">XXX</a>Web DeveloperComment


Comment