I'm generating an html popup window with Javascript. When the popup appears in Explorer 6.0 it is empty and crashes the browser, though it works in Mozilla.
In the generated code I'm linking to a Javascript file "artscripts.js". When I remove this line of code the script works fine (except of course I can't call the javascript functions contained in the linked file).
The first part of the code that generates the popup is as follows:
Expand|Select|Wrap|Line Numbers
- function enlarge(theimage)
- {
- win2=window.open('','win2','width=600,height=600,location=no,menubar=no,scrollbars=yes,resizable=yes');
- win2.focus();
- win2.document.open();
- win2.document.writeln('<HTML>');
- win2.document.writeln('<HEAD>');
- win2.document.writeln('<meta http-equiv="imagetoolbar" content="no">');
- win2.document.writeln('<TITLE>Enlarged view</TITLE>');
- win2.document.writeln('<script src="artscripts.js" language="JavaScript" language="javascript1.2"></script>');
- win2.document.writeln('<link href="styles.css" rel="stylesheet" type="text/css" />');
- win2.document.writeln('</HEAD>');
- win2.document.write('<BODY id="popupbody">');
Thanks
Laura