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="JavaS cript">
var PictureWindow;
var s;
function displayImage(Im ageName, 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=\""+ImageNa me+"\" ALT=\"\" BORDER=0>\n";
s += " <BR><BR>\n";
s += " <h4>\n";
s += titleText;
s += " </h4>\n";
s += " <BR>\n";
s += " <A HREF='javascrip t:close()'>Clos e</A>"
s += " </BODY>\n";
s += "</HTML>\n";
PictureWindow.d ocument.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="JavaS cript">
var PictureWindow;
var s;
function displayImage(Im ageName, 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=\""+ImageNa me+"\" ALT=\"\" BORDER=0>\n";
s += " <BR><BR>\n";
s += " <h4>\n";
s += titleText;
s += " </h4>\n";
s += " <BR>\n";
s += " <A HREF='javascrip t:close()'>Clos e</A>"
s += " </BODY>\n";
s += "</HTML>\n";
PictureWindow.d ocument.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
Comment