Custom JavaScript

Business Background

Add meaning to your Web page and identify features easily with JavaScript.

Titan Solution

You can add multiple JavaScript manually or get a script from a source.

How to Video

  • 0:01 Introduction.
  • 0:18 Learn how to add custom JavaScript.

How to Guide

  1. Select the Gear icon next to the plus (+) icon in Titan Web. The Project settings screen opens.
  2. Select the Tools option.
  3. Enable the Custom JavaScript toggle and select the Gear icon. The Custom JavaScript screen opens.
Custom JavaScript screen
Custom JavaScript screen
  1. Add the Type of the data script in the field.
  2. Type the Integrity to ensure that you have the correct script.
  3. Type the Cross Origin when you want to allow page sharing.
    • Select the Async checkbox to allow multiple tasks to run simultaneously during download.
    • Select the Defer checkbox to allow multiple tasks to run after download.
  4. You can get your script from a source by selection the SRC button.
  5. You can type your script in the content field by selecting the Write Content button.
  6. You can use the remove icon the remove script.
  7. Select the Add a Script button to add multiple scripts.
  8. Select the Apply button.
Custom JavaScript screen
Note:

You can use ftGetEnvParamValue() for an environment variable when using custom JavaScript.

  1. Select the Save and Publish button.
  2. Select the Launch Site button.
Publish screen
Publish screen
  1. Right-click on the screen and select the Inspect option from the context menu to view the script.
  2. Alternatively, you can select the View page source option if you used a source.
Inspect option screen

The JavaScript screen will show under the Elements tab

JavaScript screen

Hidden Title

Need more help?