platypus55
Programmer
I'm opening a new window as "", and writing a page to it. Some of the content is dependent on user input but the header<br>
is always the same, so I can just say:<br>
<br>
newWindow.document.write("<HTML>\n"); etc., etc.<br>
<br>
all fine until I try to say<br>
<br>
newWindow.document.write("<SCRIPT LANGUAGE='JavaScript'>\n");<br>
<br>
it steadfastely skips over all the Javascript, then resumes<br>
writing what I ask it to when the script part is over.<br>
<br>
This is straight line code, folks. Why will it copy some<br>
text and not other text? Obviously the page with the javascript isn't much good unless the javascript is in it!!
is always the same, so I can just say:<br>
<br>
newWindow.document.write("<HTML>\n"); etc., etc.<br>
<br>
all fine until I try to say<br>
<br>
newWindow.document.write("<SCRIPT LANGUAGE='JavaScript'>\n");<br>
<br>
it steadfastely skips over all the Javascript, then resumes<br>
writing what I ask it to when the script part is over.<br>
<br>
This is straight line code, folks. Why will it copy some<br>
text and not other text? Obviously the page with the javascript isn't much good unless the javascript is in it!!