When you open the WebHelp, you sometimes want the TOC to be closed. To make sure the TOC is not visibile when the WebHelp opens, you need to modify your output.
Note: The same can be accomplished with a context sensitive help call using windows. You can only accomplish this with fixing a JavaScript in your output and using a custom API. For the required modification, see Regular start file. For a custom API, see WebHelp APIs.
- Open whskin_frmset01.htm.
- On line 53, replace 220 with 0:
- Open whthost.js.
- Comment out the lines
- RoboHelp 8: lines 1395 and 1396.
- RoboHelp 9: lines 1371 and 1372.
function window_OnLoad()
{
if(gsBgImage&&gsBgImage.length>0)
{
document.body.background=gsBgImage;
}
if(gsBgColor&&gsBgColor.length>0)
{
document.body.bgColor=gsBgColor;
}
loadToc();
//var oMsg=new whMessage(WH_MSG_SHOWTOC,this,1,null)
//SendMessage(oMsg);
}Revision history
| Version | Change |
|---|---|
| 06-12-2011 |
Added note that you can create this behaviour with a CSH call. Added line numbers for RoboHelp 9. |
| 08-09-2011 | Fixed JavaScript error. Thanks to Shan Conner for pointing out the error. |
| 24-12-2010 | Initial version |
