How do I move a window's position on the computer screen with javascript?
问题 I remember seeing a google maps mashup / music video that created, resized, and moved windows on the screen. What javascript methods are used to do this? 回答1: I don't know how reliable this is, but to move the window relative to it's current position you can do this: window.moveBy(250, 250); //moves 250px to the left and 250px down http://www.w3schools.com/jsref/met_win_moveby.asp To move the window to a certain part of the screen: window.moveTo(0, 0); //moves to the top left corner of the