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

Re: help with window.open



I guess I'm confused (which isn't unusual).  I tried your script and it does
everything it looks like it should -- all the buttons work, and such.  I
don't have the win2.html file, though.  Is this where the "stopwatch" is?
What do you mean by "the menubar does not pop up"?  

At 03:21 PM 2/29/96 -0500, you wrote:
>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","scrollb
ars=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!!!!

--------------------------------------------------------------------
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'.