Creating an Internal Script

Create an internal script to perform complex or repetitive actions on the content of your web page.

Implementation:

  1. Click to access the Content Delivery tab.
  2. Click Scripts to open the panel in the Site Map Inspector.
  3. Click to create a new script.
  4. 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.

  1. (Optional) Type a Description in the field provided.
  2. Use the Render As drop-down menu and select: Link, Block, or External.
  3. Click Save.
  4. 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.

  1. Click to save the script.
  2. Use the Site Map Inspector menu to select Tools > Publish Changes > Scripts, which publishes the script to make it usable on the live site.