Javascript open new browser window

I saw this tutorial from Kirupa.
link

Now, what I want is that when the popup window is open, I want to maximize it. so, if I have 1024x768 monitor, I want it to be that size. If somebody else has 1400x1050, I want the window to be that size.
I believe that I am supposed to change this part, “width=800,height=600”, but I don’t know how.
Just in case, I pasted the code here.
Thank you for your help!

I put this code within HTML.
<SCRIPT LANGUAGE=“JavaScript”>
<!-- Begin
function Launch(page) {
OpenWin = this.open(page, “KirupaStyle”, “toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=800,height=600”);
}
// End -->
</SCRIPT>

I put this on the button within Flash.
on (release) {
getURL(“javascript:Launch('http://www.yahoo.com)”);

<SCRIPT languaje="javascript">
<!-- Begin
function Launch(page) {
OpenWin = this.open(page,"KirupaStyle","toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width='"+screen.width+"',height='"+screen.height+"'");
}
// End -->
</SCRIPT>

thank you for your help
that helped me a lot!

no problem. :wink:

Hey, I put the code but didn’t work
the popup window isn’t maximized!

do you see any mistakes in the code?
<SCRIPT LANGUAGE=“JavaScript”>
<!-- Begin
function Launch(page) {
OpenWin = this.open(page, “KirupaStyle”, “toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=’”+screen.width+"’,height=’"+screen.height+"’");
}
// End -->
</SCRIPT>

thanks for your help

there is no error in the code. i just tested it. :-\