Name
execScript( ) — NN n/a IE 4 DOM n/a
Synopsis
execScript(expressionList
[,
language
])
Evaluates one or more script expressions in any scripting language embedded in the browser. Expressions must be contained within a single string; multiple expressions are delimited with semicolons:
window.execScript("var x = 3; alert(x * 3)")
The default script language is JavaScript. If you need to see results
of the script execution, provide for the display of resulting data in
the script expressions. The execScript( )
method
itself returns no value.
Returned Value
None.
Parameters
-
expressionList
String value of one or more semicolon-delimited script expressions.
-
language
String value for a scripting language:
JavaScript
|JScript
|VBS
|VBScript
.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.