tshm
2/14/2014 - 2:35 AM

enable 'window', 'document' objects in jscript.

enable 'window', 'document' objects in jscript.

  // create window & document objects.
  if( typeof( document ) == 'undefined'){
    document = new ActiveXObject( 'htmlfile');
    document.write('<html></html>');
  }
  if( typeof( window ) == 'undefined') {
    window = document.parentWindow;
  }