Sun Java System Portal Server 7.1 Technical Reference

JavaScript Token Rules for HTML Content

Web pages can contain pure JavaScript code within the JavaScript tags, or they can contain JavaScript tokens or functions. For example, a web page can contain an onClick() function that causes a jump to a different URL. In order for the page to function properly, the value of the onClick() function needs to be translated and rewritten. In most cases, the rules provided in the default ruleset are sufficient to rewrite the URLs in JavaScript tokens. The default ruleset rewrites the following JavaScript tokens:

The syntax for JavaScript Token rules is:


<JSToken>javascript_function_name</JSToken>

where javascript_function_name is the name of the function such as onLoad or onClick.