# Maximizing window in JS

**URL:** <https://forum.kirupa.com/t/maximizing-window-in-js/44709>\
**Category:** web dev\
**Created:** [March 6, 2004, 8:18pm UTC](https://forum.kirupa.com/t/maximizing-window-in-js/44709 "2004-03-06T20:18:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maniaci](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Maniaci](https://forum.kirupa.com/u/Maniaci)\
**Post date:** [March 6, 2004, 8:18pm UTC](https://forum.kirupa.com/t/maximizing-window-in-js/44709/1 "2004-03-06T20:18:35Z")

</div>

anyone know of a way to maximize the currently focused window without just making the size of the window (screen.width, screen.height).

any suggestsions other than: top.moveTo(0,0); top.resizeTo(screen.width,screen.height); are welcomed
