Copy link to clipboard
Copied
Hey all I have made a few custom JS scripts that modify default behavior of a few RoboHelp functions, this works nicely however I have to manually include the JS file on every page. So my question is this; how do I programmatically append my script tags to the bottom of each page ether at build time or as a RoboHelp Scrip?
Thanks
Copy link to clipboard
Copied
There are two ways to do this (depending on your RoboHelp version)
1. Add the JS to the footer of a master page and assign the master page on generation. (In the SSL settings.)
2. Use the afterPublish event to run a script automatically whenever an output was generated. See Using the new RoboHelp 10 scripting events | Adobe Developer Connection for an introduction.
Kind regards,
Willam
Copy link to clipboard
Copied
I've successfully used option #1 that Willam mentioned to include the JavaScript for Google Analytics.
Regards,
Alan