JavaScript moveTo(0, 0) in FireFox OS X not working

Friday, 15th January 2010

Here’s a weird JavaScript FireFox bug…

In OS X, for some reason the following javascript was not positioning the FireFox browser window to the top left of the screen.

window.moveTo(0, 0);

Solution

Not sure what causes the problem but it seems to work find if you position the window 1 pixel lower.

window.moveTo(0, 1);
Share:
  • email
  • Twitter
  • Digg
  • Slashdot
  • Google Bookmarks
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Ping.fm
  • Facebook
  • Technorati

One Response to “JavaScript moveTo(0, 0) in FireFox OS X not working”

  1. Aaron Klump Says:

    Thanks Ben, this was killing me, but your posting helped me. In my experience though, I had to set to (1,1) to get results. Thanks a bunch!

    -aaron

Leave a Reply