I created a new class for a custom button which I added to my WebHelp toolbar. However, I am having a problem with the javascript command needed to call the topic I want when the button is clicked. If I want the topic to just open in the browser window, would somebody help me with what the command for the OnClick property would look like?
Thanks!
Jeff
Custom Toolbar Item Javascript
-
- Propeller Head
- Posts: 93
- Joined: Tue Jul 25, 2006 8:51 am
- Location: NC
Re: Custom Toolbar Item Javascript
The OnClick property would look something like this:
That sets the body frame to have the content from ../Content/Topic.htm - change this to your topic file name, and change the folder path too if it's different.
The path is the relative path in your output files, from the Skin/Toolbar.htm file to your topic.
Code: Select all
parent.frames["body"].location.href = "../Content/Topic.htm";
The path is the relative path in your output files, from the Skin/Toolbar.htm file to your topic.
-
- Propeller Head
- Posts: 93
- Joined: Tue Jul 25, 2006 8:51 am
- Location: NC
Re: Custom Toolbar Item Javascript
Thank you! That worked just fine. Now, I just need to find just the right button to use and get the shading for the press and hover done. Thanks again for the help!