Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Maximizing with window.open()

    Hello,

    I really need some help here.


    I have a menu where a bunch of hyperlinks are used to open different windows. An example is this:
    window.open("OTC.asp", '','location=yes,menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,width=1035,height =750,resizable=yes');

    What i'm needing is a way to open these windows so they are MAXIMIZED. I'm using IE 6.

    someone please help, Thanks in advance.

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts

  • #3
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    also

    I guess I should add that I need to have the Toolbars, menubars, address bars and everything displayed with it when this window gets maximized.

    Thanks

  • #4
    Regular Coder
    Join Date
    Feb 2003
    Posts
    638
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This might work for you:

    Code:
    <html><head>
    
    <script type="text/javascript">
    function maxPop(){
    brwsr=window.open("OTC.asp",'','location=yes,menubar=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,width=1035,height=750,resizable=yes');
    if (brwsr.window.screen){
    var w=screen.availWidth;
    var h=screen.availHeight;
    brwsr.window.resizeTo(w,h);
    brwsr.window.moveTo(0,0)}
    }
    </script>
    
    </head><body>
    <button onclick="maxPop()">open</button>
    </body></html>


    SRC: Working with Windows: Manipulating Windows

    Edit>>> code above is rendered with spaces that need to be eliminated
    Last edited by swmr; 06-11-2003 at 01:31 AM.


  •  

    Posting Permissions

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