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 Coder
    Join Date
    Jul 2002
    Location
    North Carolina
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Spawning Browser Window @ 400x600?

    I have a question, one I've wondered about for years.... (occasionally!)

    Can a browser window be spawned *initially* at a specified size? In other words, if I have a link on my desktop to a javascript pop up at 400 x 600 pixels, do I need a blank browser window thrown up first to achieve this, or can the first window be sized as I want?

    Thanks!
    Rick

  • #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
    se if this does the trick for you

    <body onload="javascript:resizeTo(400,600)">

  • #3
    New Coder
    Join Date
    Jul 2002
    Location
    North Carolina
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using Frames....Seems to be a Problem

    The index page is a typical frameset.

    The resize works, but then no content appears!

    <body onload="javascript:resizeTo(600,400)">
    <!-- frames -->
    <frameset rows="*,80%">
    <frame name="right" src="title.html" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
    <frameset cols="28%, *">
    <frame name="title" src="nostree.htm" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
    <frame name="left" src="right.html" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
    </frameset>
    </frameset>
    </body>

    Thanks for the response!
    Rick

  • #4
    New Coder
    Join Date
    Jul 2002
    Location
    North Carolina
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Got it

    Thanks Alien,

    I just added it to the <frameset rows= ....> tag and it worked!

    Handy dandy.

    Rick


  •  

    Posting Permissions

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