Creating an Internal Script
Create an internal script to perform complex or repetitive actions on the content of your web page.
Implementation:
- Click to access the Content Delivery tab.
- Click Scripts to open the panel in the Site Map Inspector.
- Click to create a new script.
- In the New Script dialog provide a unique Script Name.
Certain characters are not permitted in a script's name. If you attempt to use these characters, a validation message will appear and you will be unable to proceed until you amend the name.
- (Optional) Type a Description in the field provided.
- Use the Render As drop-down menu and select: Link, Block, or External.
- Click Save.
- Type JavaScript content into the blank editor.
You should not attempt to write a script unless you are confident in your ability to use JavaScript.
- Click to save the script.
- Use the Site Map Inspector menu to select Tools > Publish Changes > Scripts, which publishes the script to make it usable on the live site.