[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help with window.open



I am having lots o trouble with this script:

<HTML>
<HEAD>
<TITLE>Window object example: Window 1</TITLE>
</HEAD>
<BODY BGCOLOR="antiquewhite">
<SCRIPT>
window2=window.open("http://websrv/javas/win2.html","secondWindow","scrollbars=y
es,width=250, height=400")
document.writeln("<B>The first window has no name: " + window.name + "</B>")
document.writeln("<BR><B>The second window is named: " + window2.name + "</B>")
</SCRIPT>
<FORM NAME="form1">
<P><INPUT TYPE="button" VALUE="Open a message window"
   
onClick="window3=window.open('','messageWindow','menubar=yes,scrollbars=yes,widt
h=175, height=300')">
<P><INPUT TYPE="button" VALUE="Write to the message window"
   onClick="window3.document.writeln('Hey there');window3.document.close()">
<P><INPUT TYPE="button" VALUE="Close the message window"
   onClick="window3.close()">
<P><INPUT TYPE="button" VALUE="Close window2"
   onClick="window2.close()">
</FORM>
</BODY>
</HTML>

first of all, the "second window" pops up with a stopwatch on the inside. The
win2.html will NOT load into the window. But it did intermittenly work -
sometimes! What is wrong with this. Also the menubar does not pop up!

HELP PLEASE!!!!


-rob
-----------------------------------------------------------------------
Robert F. Marano         __o          o__      o__      o__      o__
Merrill Lynch & Co.    _ \<,_        _.>/ _   _.>/ _   _.>/ _   _.>/ _
rmarano@ml.com        (_)/ (_)      (_) \(_) (_) \(_) (_) \(_) (_) \(_)

--------------------------------------------------------------------
This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.