Use an Invoke Script command to call a JavaScript function inside your web layout.
To create an Invoke Script command
- Follow steps 1 - 4 in Creating New Advanced Commands.
- Click the Additional Parameters tab.
- On the Additional Parameters tab, under Script To Invoke, enter the name of the script file to associate with this command.
- Click File menu
Save.