I'd like to resize & move a browser window using JavaScript. resizeTo() and moveTo() seem to be my friends here:
window.resizeTo(x,y);
window.moveTo(x,y);
This works, but visually, it's a bit clunky. First, the window is moved to the desired location and then the window gets repainted on the display. Finally, the window is resized to the desired dimensions and gets repainted on the display once more. This all happens within a couple hundred milliseconds but the two discrete step are noticeable and it looks awkward.
What I really want is for these two methods to be atomic, such that they both return before the browser window (UI and all,) gets repainted on the display. Can this more cohesive presentation of window repositioning and resizing be achieved using JavaScript?