J
Jerrold Kronenfeld
I am using the following javacript function (in the HEAD section of the
HTML file) to open a window in response to user action on the page:
<SCRIPT LANGUAGE="JavaScript">
var PictureWindow;
var s;
function displayImage(ImageName, titleText )
{
PictureWindow = window.open()
s = "<HTML>\n";
s += " <HEAD>\n";
s += " <TITLE> </TITLE>\n";
s += " </HEAD>\n";
s += " <BODY>\n";
s += " <CENTER>\n";
s += " <IMG SRC=\""+ImageName+"\" ALT=\"\" BORDER=0>\n";
s += " <BR><BR>\n";
s += " <h4>\n";
s += titleText;
s += " </h4>\n";
s += " <BR>\n";
s += " <A HREF='javascript:close()'>Close</A>"
s += " </BODY>\n";
s += "</HTML>\n";
PictureWindow.document.write(s);
}
</SCRIPT>
The function works with no trouble in IE. In Netscape, it works, sort of.
It will create and open the window but will not complete the open process
(hour glass keeps on).
Why does this work ok in IE but not Netscape?
Thanks
HTML file) to open a window in response to user action on the page:
<SCRIPT LANGUAGE="JavaScript">
var PictureWindow;
var s;
function displayImage(ImageName, titleText )
{
PictureWindow = window.open()
s = "<HTML>\n";
s += " <HEAD>\n";
s += " <TITLE> </TITLE>\n";
s += " </HEAD>\n";
s += " <BODY>\n";
s += " <CENTER>\n";
s += " <IMG SRC=\""+ImageName+"\" ALT=\"\" BORDER=0>\n";
s += " <BR><BR>\n";
s += " <h4>\n";
s += titleText;
s += " </h4>\n";
s += " <BR>\n";
s += " <A HREF='javascript:close()'>Close</A>"
s += " </BODY>\n";
s += "</HTML>\n";
PictureWindow.document.write(s);
}
</SCRIPT>
The function works with no trouble in IE. In Netscape, it works, sort of.
It will create and open the window but will not complete the open process
(hour glass keeps on).
Why does this work ok in IE but not Netscape?
Thanks