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

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);


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

window.moveTo(0, 1);
extract is a 100% natural and pure green coffee extract

Ben Huson


4 thoughts on “JavaScript moveTo(0, 0) not working in FireFox OS X

  1. Thanks a lot.

    When trying to maximize a window, you have to set -1 on total width and height like this :

    resizeTo(screen.availWidth-1, screen.availHeight-1)

    If not doing this, moveTo(1,1) will not work

Leave a Reply

Your email address will not be published. Required fields are marked *