Custom JavaScript
Before you start
- You need access to the Control Panel with permission to manage the Developer Framework.
Note: The Developer Framework lets you customise and extend your intranet with your own JavaScript, CSS and apps. Examples in these pages are samples, not officially supported by Interact Technical Support, and should be reviewed and tested by your development team before use.
Overview
With the Developer Framework you can add custom JavaScript to your intranet. This gives you full access to modify the page (the DOM) and gives you integration points with other systems.
To add custom JavaScript, go to Control Panel > Developer Framework. Select MasterPage JavaScript and enter your code.
Where to find it
In the Control Panel, search for or scroll to the Developer Framework group, then select MasterPage JavaScript.
The Edit MasterPage JavaScript page opens. Enter your code in the editor and select Save Changes. You can review earlier versions with View History.
Warning: JavaScript added here runs on every page of your intranet except for pop-up modals. It can interfere with the normal running of your site. Because of the way browsers run JavaScript, any error in your custom code can stop your intranet from working, so proceed with caution.