# Find Browser Window Size

**URL:** <https://forum.kirupa.com/t/find-browser-window-size/283878>\
**Category:** flash\
**Created:** [March 12, 2009, 1:57am UTC](https://forum.kirupa.com/t/find-browser-window-size/283878 "2009-03-12T01:57:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![waverider303](https://avatars.discourse-cdn.com/v4/letter/w/ac91a4/32.png) [@waverider303](https://forum.kirupa.com/u/waverider303)\
**Post date:** [March 12, 2009, 1:57am UTC](https://forum.kirupa.com/t/find-browser-window-size/283878/1 "2009-03-12T01:57:53Z")

</div>

I have a website and it is set to 100% of the browser window. Everything in the browser is left aligned. I have a script that when u has an event listener on the RESIZE so that everything will be centered when u adjust the window. What my problem is that right when the page loads the swf is left aligned. I want the stuff to be already centered but the only way to do that is to adjust the browser window.

Heres my site: [My Example](http://www.doublelunar.com/v2)

Watch that when it loads its all to the left. Resize the browser and everything will snap to the middle.

Anyone know how to find out the browser windows size?:hair:
