# Automatic broswer resizing

**URL:** <https://forum.kirupa.com/t/automatic-broswer-resizing/20302>\
**Category:** Uncategorized\
**Created:** [May 7, 2003, 9:22am UTC](https://forum.kirupa.com/t/automatic-broswer-resizing/20302 "2003-05-07T09:22:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![postatomic](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@postatomic](https://forum.kirupa.com/u/postatomic)\
**Post date:** [May 7, 2003, 9:22am UTC](https://forum.kirupa.com/t/automatic-broswer-resizing/20302/1 "2003-05-07T09:22:29Z")

</div>

hi…

Can anyone point me in the right direction for this please…

I’m looking for my browser window (not the flash movie) to open up and resize itself to the resolution of the viewers screen.

I know that this is html…but I know you’re all so helpful

thanks

postatomic:evil:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 7, 2003, 9:34am UTC](https://forum.kirupa.com/t/automatic-broswer-resizing/20302/2 "2003-05-07T09:34:16Z")

</div>

It’s JavaScript, actually… There’s a script that will detect the user’s screen resolution - find it on any good JS site. 🙂 The you should be able to use if statements, based on the result that function returns, to display the correct sized window with width and height specified. 🙂

Sorry I don’t actually have the detection script to hand…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 7, 2003, 9:57am UTC](https://forum.kirupa.com/t/automatic-broswer-resizing/20302/3 "2003-05-07T09:57:35Z")

</div>

you can do it within flash… =)

```auto
resizeWindow = function() {
	var w = System.capabilities.screenResolutionX, h = System.capabilities.screenResolutionY;
	getURL("java script:window.moveTo(0, 0); window.resizeTo("+w+", "+h+");");
};
resizeWindow();

```

😉

**ps.** remove the space between java and script.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 7, 2003, 10:03am UTC](https://forum.kirupa.com/t/automatic-broswer-resizing/20302/4 "2003-05-07T10:03:28Z")

</div>

Cool, I’d only ever used the JS version. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 7, 2003, 1:32pm UTC](https://forum.kirupa.com/t/automatic-broswer-resizing/20302/5 "2003-05-07T13:32:43Z")

</div>

thanks for the help but where do you place the actionscript…?

is it just on the first frame of the movie?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 7, 2003, 1:35pm UTC](https://forum.kirupa.com/t/automatic-broswer-resizing/20302/6 "2003-05-07T13:35:47Z")

</div>

yeah… or at any frame when you want to resize the window. 😉
