You can automatically expand dropdowns and expandspots when your output opens. To do this, you need to make a small change to your ehlpdhtm.js file.
Compatibility
This script works with the following outputs:
| Version / Output | AIR | CHM | FlashHelp | WebHelp |
|---|---|---|---|---|
| RoboHelp 9 | 1 |
![]() |
![]() |
![]() |
| RoboHelp 8 | ![]() |
![]() |
![]() |
![]() |
| RoboHelp 7 | ![]() |
![]() |
![]() |
![]() |
Setting up
For a CHM, you need to modify the ehlpdhtm.js of the project root. For WebHelp, you need to modify the ehlpdhtm.js file in the output folder. Follow these steps to make dropdowns and expandspots show by default:
- Find:
CCSSP.RegisterEventHandler( window, "onload", "TextPopupOnLoad(\"" + el.id +"\");" );
- Line 2357 for RoboHelp 7.
- Line 2498 for RoboHelp 8.
- Line 2497 for RoboHelp 9.
- Add a new line after the found line.
- Add the following code on the new line:
CCSSP.RegisterEventHandler( window, "onload", "TextPopup(\"" + el.id +"\");" );
- Save the script.
- 1. To make the script work with an Air application, modify the seed file in your RoboHelp installation directory.


