I would like to open a 'child' window win and check it's ready state.
Unfortunately, when I try to do so, I discover that win.document does
not appear accessable from the parent window, see below. Is this by
design or am I doing something wrong.
<HTML>
<HEAD>
<TITLE>Javascri pt Test</TITLE>
</HEAD>
<SCRIPT language="JavaS cript">
var win =
open('http://faqts.com/knowledge-base/community/index.phtml/id/601');
var iq = 0;
var q = "";
q += 'typeof window.document ' + typeof(window.d ocument) + '\n';
q += 'typeof window.document .readystate ' +
typeof(window.d ocument.readySt ate) + '\n';
q += 'typeof window.addevent Listener ' +
typeof(window.a ddEventListener ) + '\n';
q += 'typeof win.document ' + typeof(win.docu ment) + '\n';
q += 'typeof win.document.re adystate ' +
typeof(win.docu ment.readyState ) + '\n';
q += 'typeof win.addeventLis tener ' + typeof(win.addE ventListener) +
'\n';
</SCRIPT>
<H1>Check access to features</H1>
<BODY onLoad="alert(q )">
</BODY>
</HTML>
Unfortunately, when I try to do so, I discover that win.document does
not appear accessable from the parent window, see below. Is this by
design or am I doing something wrong.
<HTML>
<HEAD>
<TITLE>Javascri pt Test</TITLE>
</HEAD>
<SCRIPT language="JavaS cript">
var win =
open('http://faqts.com/knowledge-base/community/index.phtml/id/601');
var iq = 0;
var q = "";
q += 'typeof window.document ' + typeof(window.d ocument) + '\n';
q += 'typeof window.document .readystate ' +
typeof(window.d ocument.readySt ate) + '\n';
q += 'typeof window.addevent Listener ' +
typeof(window.a ddEventListener ) + '\n';
q += 'typeof win.document ' + typeof(win.docu ment) + '\n';
q += 'typeof win.document.re adystate ' +
typeof(win.docu ment.readyState ) + '\n';
q += 'typeof win.addeventLis tener ' + typeof(win.addE ventListener) +
'\n';
</SCRIPT>
<H1>Check access to features</H1>
<BODY onLoad="alert(q )">
</BODY>
</HTML>
Comment