Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

How do I, using Javascript, uncheck the 'Load this bookmark in the sidebar'?

  • 2 réponses
  • 10 ont ce problème
  • 1 vue
  • Dernière réponse par cor-el

more options

I am trying to write javascript code to 'Add to Favorites' / Bookmark this page'. My current function is: function doAddToFavorites (sLoc) { var title='SDLC Form and Template Solutions' var sFullURL = 'http://www.' + sLoc if (window.sidebar) // firefox window.sidebar.addPanel (title, sFullURL, ); else if (window.opera && window.print) // opera { var elem = document.createElement ('a') elem.setAttribute ('href', sFullURL) elem.setAttribute ('title', title) elem.setAttribute ('rel', 'sidebar') elem.click () } else if (document.all) // ie window.external.AddFavorite (sFullURL, title); else ; }

When I click on the 'Add To Favorites' image and execute this Javascript, it works except the 'Load this bookmark in the sidebar' is checked'. What do I need to change to uncheck this box?

I am trying to write javascript code to 'Add to Favorites' / Bookmark this page'. My current function is: function doAddToFavorites (sLoc) { var title='SDLC Form and Template Solutions' var sFullURL = 'http://www.' + sLoc if (window.sidebar) // firefox window.sidebar.addPanel (title, sFullURL, ''); else if (window.opera && window.print) // opera { var elem = document.createElement ('a') elem.setAttribute ('href', sFullURL) elem.setAttribute ('title', title) elem.setAttribute ('rel', 'sidebar') elem.click () } else if (document.all) // ie window.external.AddFavorite (sFullURL, title); else ; } When I click on the 'Add To Favorites' image and execute this Javascript, it works except the 'Load this bookmark in the sidebar' is checked'. What do I need to change to uncheck this box?

Toutes les réponses (2)

more options

Yes, this seems to be a tricky one. There have been several times, today, I thought I might have a fix for this, but all have failed. If any of you have solved this, please let us know. Some site are loading a alert box with instructions to uncheck - like this:

... alert("Please perform the following once you added bookmark:\n\n 1. Click on Bookmarks -> Organize bookmarks \n 2. Select the newly added bookmark and click on properties \n 3. Uncheck for 'Load this bookmark in the sidebar' \n\n For information, refer the user guide"); window.sidebar.addPanel(title, href,"",""); ...

Thanks, Kevin Crothers

more options

That is not possible. All bookmarks created via that JavaScript method open by default in the sidebar and that can't be changed otherwise then by editing the bookmark. It would be better to instruct visitors to press Ctrl + to bookmark the website. Bookmarks created that way are saved in the Bookmarks Menu folder and not in the Unsorted folder like when you click the star on the location bar.