A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Can I change the size of Current Browser?

  1. #1
    With Javascript can I change the size of the browser that I have open? If so How?

    Eric

  2. #2
    Member
    Join Date
    Oct 2001
    Posts
    56
    yes you can.

    <head>
    <script language="javascript" type="text/javascript">
    <!--
    function resize(){
    x = your width
    y = your height
    self.resizeTo(x, y)
    }
    //-->
    </script>
    </head>

    <body onload="resize()">

    you might want to use the moveTo (0,0)
    to place it where you want it on the page.

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Location
    Seoul, South Korea
    Posts
    1,310
    If your referring to a popup window use the following:

    on (release) {
    getURL("javascript:window.open('http://your.com/example.swf','name','width=650,height=250,top=200, left=200'); void(0);");
    }

    If you want to get an existing browser window to open to a particular size use the onLoad() function.

    Cheers,
    micmac

  4. #4
    How do I call this function as the page loads.

    This will not be a popup.

    Thanks for the help!

  5. #5
    Member
    Join Date
    Oct 2001
    Posts
    56
    <body onload="resize()" >

  6. #6
    Thanks that worked great. Now I am trying to remove the status bar.

    I am trying this code and just get an error.

    window.statusbar.visible = false;

    Any 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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center