Trellian Webpage

Inserting JavaScript



Internal Javascript

JavaScript is a script/programming language that can be embedded into a web page to add functionality.

To insert Javascript code directly into the webpage click on the Insert menu and select Internal Script from the Insert Script submenu.

Insert javascript

The Javascript editor will be displayed.

Script editor

Select the Javascript version from the drop down menu and enter the script code. When finished click OK and the script will be incorporated into the webpage. Other script languages can also be inserted in the same manner.


External Javascript

To insert Javascript from a .js file click on the Insert menu and select External Script from the Insert Script submenu. Locate the .js file and click Open to insert the script.


Visitor Javascript

To control webpage visitor access to some browser features, eg. right clicking, click on the Insert menu and select the desired option in the Visitor Access submenu from the Insert Script main menu.

Access control scripts

Note: These functions provide basic access restrictions, however there are alternative methods that can be used to circumvent Javascript based restrictions.