canExecScript

Description

Boolean property that specifies whether or not script in the host page can be executed from the document hosted by the ScriptXtra plugin. For security reasons ScriptXtras allows script execution only if the domain name for the host and plug-in inner pages are the same. If “true” a script can be executed, otherwise access is denied.

Syntax

[fCanExecuteScript=] window.external.canExecScript;

This is a read-only property. Returns a boolean value. If true script is allowed to execute, otherwise false. 

Applies To

window.external for content displayed in the ScriptXtra window.

Example

// when our DOM is ready, call the function hostedDocumentReady()
// in the document containing our embed tag.
$( document ).ready(function) {
   if ( window.external.canExecScript ) {
      window.external.execScript("hostedDocumentReady()");
   }
});

See also

execScript