Function parameters are classified into four categories:
JavaScript URL Parameters
JavaScript EXPRESSION Parameters
JavaScript DHTML Parameters
JavaScript DJS Parameters
URL parameters are string parameters that directly contain the URL.
The default ruleset rewrites the following JavaScript URL parameters:
openURL
openAppURL
openNewWindow
parent.openNewWindo
window.open
The syntax for URL parameters is:
<Function type = "URL" name = "function" [paramPatterns="y,y,"] /> |
where function is the name of the function to be evaluated and y indicates the position of the parameter(s) that need to be rewritten. Parameter positions are delimited by commas. For example, in the syntax line the first and second parameters need to be rewritten, but the third parameter should not be rewritten.
EXPRESSION parameters are variables within a function that result in a URL when they are evaluated. The syntax for EXPRESSION parameters is
<Function type = "EXPRESSION" name = "function" [paramPatterns="y,y,"] /> |
where function is the name of the function to be evaluated and y indicates the position of the parameter(s) that need to be rewritten. Parameter positions are delimited by commas. For example, in the syntax line the first and second parameters need to be rewritten, but the third parameter should not be rewritten.
DHTML parameters are native JavaScript methods that generate an HTML page dynamically. For example, the document.write() method falls under this category.
The default ruleset rewrites the following JavaScript DHTML parameters:
document.write
document.writeln
The syntax for DHTML parameters is:
<Function type = "DHTML" name = "function" [paramPatterns="y,y,"] /> |
where function is the name of the function to be evaluated and y indicates the position of the parameter(s) that need to be rewritten. Parameter positions are delimited by commas. For example, in the syntax line the first and second parameters need to be rewritten, but not the third parameter should not be rewritten.
Dynamic JavaScript (DJS) parameters such as Cascading Style Sheets (CSS) in HTML are also translated. There are no rules defined for this translation as the URL appears only in the url() function of the CSS. The syntax for DJS parameters is:
<Function type = "DJS" name = "function" [paramPatterns="y,y,"] /> |
where function is the name of the function to be evaluated and y indicates the position of the parameter(s) that need to be rewritten. Parameter positions are delimited by commas. For example, in the syntax line the first and second parameters need to be rewritten, but not the third parameter should not be rewritten.