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 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2003
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do you open a window to its full size?

    I am writing a program to open a window. Listed below is the coding I'm using to open a window at a smaller size. I had thought that simply taking out the coding (height=560, width=440) would make it default to opening to the full size, but it doesn't. What coding do I use to ensure that the window always opens to the full size of the screen.

    Thanks

    ************

    var w = window.open(url, target, "height=560, width=440, toolbar=no,directories=no,status=no,scrollbars=no,resizable=no,menubar=no");

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    338
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    var w = screen.width, h = screen.height;
    var x = window.open(url, target, 'top=0,left=0,width=' + w + ',height=' + h);
    Hope that helps!

    Happy coding!

  • #3
    New Coder
    Join Date
    Dec 2003
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    Thanks for your help


  •  

    Posting Permissions

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