HomeCustomise & extendCustom JavaScript

Custom JavaScript

Add your own JavaScript to your intranet through the Developer Framework to modify the page and integrate with other systems.

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.

Control Panel showing the Developer Framework group with MasterPage JavaScript highlighted

The Edit MasterPage JavaScript page opens. Enter your code in the editor and select Save Changes. You can review earlier versions with View History.

Edit MasterPage JavaScript page with the warning and information banners, code editor, and Save Changes button

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.

Next steps

Section: Customise & extend