How to add a script to a page |
Add a script to a specific page class if you know or expect that the script will need to be called from various places on pages based on that page class (or on its descendent classes), but has no wider applicability. To add a user-defined JavaScript script that you want to be available from within a specific page:
js/MyScripts.js
Alternatively, you can point to the file in the Script Source property of the Page object. If you prefer to code directly in Web Designer, you can write the script as a value of the Page's Document Script property. |