StreamMe Posted April 3, 2008 Share Posted April 3, 2008 This example works, but it tells firefox to check the "open in sidebar" option when adding the bookmark. What is the way to add a regular bookmark that opens in the regular browser window? function bookmark(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); } Quote Link to comment https://forums.phpfreaks.com/topic/99365-javascript-firefox-add-bookmark-without-useing-the-sidebar/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.