Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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