JavaScript
- Applies to:
- All MindTouch Versions
- Role required:
- Draft Contributor
Add a JavaScript block to your page
- Open your page in Edit mode.
- Place the cursor on the page where you want to insert the JavaScript block.
- On the editor toolbar, click Styles and select JavaScript (JEM).
- Place your cursor in the JavaScript block and add your code.
- Click Save.
- Reload the page to verify the JavaScript renders successfully.
Example use case
Use JavaScript to add a popup alert message or other custom enhancements.