E
eels
Hello,
I want to open a new window with javascript:
secondWindow=window.open(...)
secondWindow.document.writeln(...)
I wrote the javascript code into a separate file secondwindow.js.
I need in the new window the same javascript code, therefore:
secondWindow.document.writeln('<script type="text/javascript"
language="javascript1.2" src="../../js/secondwindow.js"><\/script>');
Just this line makes problems in Internet Explorer (without reaction),
not always and not in all Internet Explorer versions.
Netscape, Opera and Mozilla work without problems.
I tested successfully with w3c validator the XHTML code which created
with secondWindow.document.writeln().
What is the reason? How can I resolve this problem?
Thank you for your hints, Eels
I want to open a new window with javascript:
secondWindow=window.open(...)
secondWindow.document.writeln(...)
I wrote the javascript code into a separate file secondwindow.js.
I need in the new window the same javascript code, therefore:
secondWindow.document.writeln('<script type="text/javascript"
language="javascript1.2" src="../../js/secondwindow.js"><\/script>');
Just this line makes problems in Internet Explorer (without reaction),
not always and not in all Internet Explorer versions.
Netscape, Opera and Mozilla work without problems.
I tested successfully with w3c validator the XHTML code which created
with secondWindow.document.writeln().
What is the reason? How can I resolve this problem?
Thank you for your hints, Eels