Skip to main content
Participating Frequently
Jul 9, 2009 7:00 PM UTC
Question

Add to Favorites Toolbar Button

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

StJDame
Participant
Oct 22, 2014 8:45 PM UTC

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.

Translate
Willam van Weelden
Inspiring
Oct 23, 2014 7:09 AM UTC

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

Translate
Willam van Weelden
Inspiring
Aug 13, 2009 8:48 AM UTC

Hi,

Adding bookmarks is a pain, see this question.

Greets,

Willam

Translate