Pam,
You can insert a Javascript using the Insert/Advanced menu,
and RH will preserve it.
However, I make my code modifications in the output files,
after generating WebHelp.
There are some RH templates that you can alter, if you want
the change to carry over permanently, in every project. For
project-specific or topic-specific code, go to the output file.
Templates are in the WebHelp5Ext folder, in RoboHTML and in a
folder with the same name in RoboHELP, in the RoboHelp Office
directory (under C:Program Files, unless you've installed it
elsewhere.)
Needless to say, changing RH code templates can be dicey.
Harvey