Custom toolbar button or link to close Help window
-
- Jr. Propeller Head
- Posts: 7
- Joined: Thu Nov 29, 2007 10:20 am
Custom toolbar button or link to close Help window
I'm delivering Mobile WebHelp for two HTML5 applications. I'd like to be able to have a button or link on the topic toolbar that closes the Help browser window and returns the user to the main app. Any ideas?
jeannie
Re: Custom toolbar button or link to close Help window
A lot will depend on how you are calling the help from your apps. As long as you are calling them as a child via Javascript, i.e.:
Then you can simply add a standard Javascript close button:
If you are not calling the help via Javascript, then the button will either do nothing, or warn the user that the script is attempting to close the window. The help HAS to be a child window to close problematically.
We havn't got into testing this heavily with mobile browsers, so there may be some sticking points, but it works on our initial tests.
Code: Select all
<a href="" onclick="window.open('Default.htm?cshid=1000', 'hlpwnd');">Help!</a>
Code: Select all
<a href="" onclick="window.close;">Close</a>
We havn't got into testing this heavily with mobile browsers, so there may be some sticking points, but it works on our initial tests.