MozillaZine

Mozilla Firefox 2 Release Candidate 1 Available for Testing

Wednesday September 27th, 2006

Mozilla Firefox 2 Release Candidate 1 is now available for download. This preview of the next version of Firefox browser is aimed at Web Application Developers, testers and early adopters.

For more information, refer to the Release Notes.


#42 Re: Re: window.open()

by ccapeng

Friday September 29th, 2006 4:37 PM

You are replying to this message

I think the major problem is that pop up window can't get focus() again regardless "dependent". Use the following as sample. Open a window, then sink it. Click "POP UP" again, FF1.5 get focus, but FF2. Same problem if I use trusted content.

&lt;HTML&gt; &lt;HEAD&gt; &lt;SCRIPT TYPE="text/javascript"&gt; function Popup() { var fooWin = window.open( "<http://www.google.com/>", "myWindow", "status = 1, height = 300, width = 300, resizable = 0" ) fooWin.focus(); } &lt;/SCRIPT&gt; &lt;/HEAD&gt; &lt;BODY&gt; &lt;FORM&gt; &lt;INPUT TYPE="button" onClick="Popup()" VALUE="POP UP"&gt; &lt;/FORM&gt; &lt;/BODY&gt; &lt;/HTML&gt;