Window.execScript() (Method)

Execute a script on behalf of a window.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:User defined
JavaScript syntax:IEexecScript(aSourceText)
IEexecScript(aSourceText, aLanguage)
IEmyWindow.execScript(aSourceText, aLanguage)
Argument list:aSourceTextSome legal script source text
aLanguageThe language to execute the script source in

This is somewhat like an eval() call except that the script runs in the context and scope chain of the target window and not the window whose script makes the call.

Because this is currently only supported in MSIE, you may not find it very useful.

See also:Frame object, Window object