Hi All,
How do I go about adding custom toolbar buttons to an HTML5 skin that will open specific pages within my help system? I was able to do this with WebHelp outputs using the following script:
<Property
Name="OnClick">parent.frames["body"].location.href = "../Content/Contact.htm";</Property>
Alas, this doesn't work because HTML5 does not use frames.
Help would be greatly appreciated.
Thanks!
Adding custom toolbar buttons to HTML5 skins
-
operalover
- Jr. Propeller Head
- Posts: 2
- Joined: Wed May 16, 2012 8:43 am
-
Lydia
- Sr. Propeller Head
- Posts: 373
- Joined: Tue Apr 23, 2013 3:19 am
- Location: The Netherlands, Amsterdam Area
Re: Adding custom toolbar buttons to HTML5 skins
Hi,
the script/action can be added the following way:
Go to the Styles tab in your HTML5 skin. In the Styles list, scroll down to 'Toolbar Button' and expand the list. Choose the button you want to add the script to. The properties of the button show on the right. Change the property Event.Click to something like window.open("Default.htm#Topics/General/HomePage.htm","_parent") . The HomePage.htm in my example has to be replaced by the one you actually want to open.
Regards, Lydia.
the script/action can be added the following way:
Go to the Styles tab in your HTML5 skin. In the Styles list, scroll down to 'Toolbar Button' and expand the list. Choose the button you want to add the script to. The properties of the button show on the right. Change the property Event.Click to something like window.open("Default.htm#Topics/General/HomePage.htm","_parent") . The HomePage.htm in my example has to be replaced by the one you actually want to open.
Regards, Lydia.
Using Flare 10.2 and Flare 11 on Win 7
Re: Adding custom toolbar buttons to HTML5 skins
For HTML5, the target is the "topic" frame, instead of "body" used by WebHelp.
Code: Select all
parent.frames["topic"].location.href = "Content/Contact.htm";