Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: document.write("") not working - August 04, 1998 at 18:35:52

You are here: irt.org | BBS | document.write("") not working [This BBS is closed]

Posted by dong wang on August 04, 1998 at 18:35:52:

How to make the following script working:

<script language="JavaScript">
function NewPage () {
var NP=window.open ("","NEW PAGE","toolbar=yes,menubar=yes,location=yes,width=500,height=500");
NP.document.open ();
NP.document.writeln ("<html><head><title>my title</title><script src=\"myFile.js\"></script></head>");
NP.document.writeln ("<body> the document body here</body></html>");
NP.document.close ();
}
</script>

The problem I encountered is that the part
<script src="myFile.js"> </script>
is missing from the child window. I heard it is probably related to a browser's bug. Does anybody know how to make it work?

Follow-ups:

You are here: irt.org | BBS | document.write("") not working [This BBS is closed]

©2018 Martin Webb