Skip to main content
Participating Frequently
July 9, 2009
Question

Add to Favorites Toolbar Button

  • July 9, 2009
  • 2 replies
  • 2086 views

I am trying to add a toolbar button (for webhelp output) for a client to use that will add the current page to the user's IE Favorites list. I have used the script from Rick Stone's Skinny On Skins "Toolbar button to add items to the Favorites list" topic, but I get a javascript error when trying to execute the button in the toolbar.

Here is the code I'm copying from Rick's Skinny on Skins ...

javascript:window.external.AddFavorite(parent.frames[1].bsscright.location,paren t.frames[1].bsscright.document.title);

Any help would be welcomed!

This topic has been closed for replies.

2 replies

StJDame
Participant
October 22, 2014

If this was a copy and paste of the actual code, you have a space in the second "parent" reference between the n and the t.

Willam van Weelden
Inspiring
October 23, 2014

Wow. A reply for such an old thread :-)

The problem here is not a space, but that browsers work differently with favorites/bookmarks and don't always support it through JavaScript. If anyone is looking at this thread, here are two solutions:

- WebHelp buttons: http://www.wvanweelden.eu/product/webhelp-pro-toolbar-scripts

- WebHelp favorites: http://www.wvanweelden.eu/product/favorites-widget-webhelp

Kind regards,

Willam

Willam van Weelden
Inspiring
August 13, 2009

Hi,

Adding bookmarks is a pain, see this question.

Greets,

Willam