Using a Toolbar button to open a website

 Article #: OUTW1019F  Product: Flare   Version: All

Summary:

This article provides a Javascript command that can be used to open an external website from a toolbar button.

Full Description:

Each button on the toolbar has an action associated with it. Users can create buttons, add them to the the toolbar and provide Javascript onclick actions for these buttons in the skin editor. The Javascript command described below will open a website in a new window. Javascript is a powerful and flexible language, so other methods besides this one can be made to work. However, this one is relatively simple to implement.

Solution:

  1. Open the appropriate Flare skin in the skin editor
  2. Navigate to the Styles tab
  3. Expand the ToolbarItem group
  4. Choose the button on which you want to set the Onclick action.
  5. Expand the Type group. Make sure the type is set to "Button".
  6. In the onclick field, provide the following Javascript command, changing the address to point to the appropriate site.

window.open("http://www.madcapsfotware.com")

  1. Save the change to the skin and preview the skin as Webhelp. Test the button to make sure it works as intended.

Attribution:

Last updated:

February 29, 2008

Author:

Neal Pozner