A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How to maximaze a javascript popup window?

  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    87

    How to maximaze a javascript popup window?

    hi
    I would like to know how to automatically maximaze the popup without the user clicking the maximaze button on the title bar since popus dont automactically maximize.

    Thanks

  2. #2
    mullet king
    Join Date
    Jun 2002
    Posts
    1,398
    Code:
    <script language="JavaScript1.2">
    <!--
    
    top.window.moveTo(0,0);
    if (document.all) {
    top.window.resizeTo(screen.availWidth,screen.availHeight);
    }
    else if (document.layers||document.getElementById) {
    if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
    top.window.outerHeight = screen.availHeight;
    top.window.outerWidth = screen.availWidth;
    }
    }
    //-->
    </script>

  3. #3
    Member
    Join Date
    Jul 2002
    Posts
    87
    Mx kid,
    Thanks for the quick reply
    Actually the script you game just stretched the window to all avialable space but didnt really maximize it like when you click the maximize button on the toolbar. Is that possible?

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center