# Self.moveTo doesn't work in Firefox

**URL:** <https://forum.kirupa.com/t/self-moveto-doesnt-work-in-firefox/298327>\
**Category:** Uncategorized\
**Created:** [October 16, 2009, 3:12pm UTC](https://forum.kirupa.com/t/self-moveto-doesnt-work-in-firefox/298327 "2009-10-16T15:12:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kathari](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@kathari](https://forum.kirupa.com/u/kathari)\
**Post date:** [October 16, 2009, 3:12pm UTC](https://forum.kirupa.com/t/self-moveto-doesnt-work-in-firefox/298327/1 "2009-10-16T15:12:18Z")

</div>

Hi,  
I need to maximize a browser-window and move it the screen’s upperleft corner. Previously I have used this script:

```auto
<script language="JavaScript" type="text/JavaScript">
<!--
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
//-->
</script>

```

I haven’t needed to do this for a long time and suppose it is antiquated. It doesn’t work in Firefox. It does resize the window but it doesn’t move it to the 0, 0 coordinates.  
Could someone help me with something that works for Firefox?🙂
