View Full Version : move/resize window not working

12-19-2004, 04:53 AM
How do you move/resize the current window?
I've tried window.resizeTo(#,#) and window.moveTo(#,#) but they don't work.

12-19-2004, 05:04 AM
I don't think you can. At least, IE will throw an "Access Denied" exception, if the window has mouse capture (IIRC).

12-19-2004, 05:11 AM
That's wierd. It worked before (there was a mouse capture thing being used.) Oh Well.

12-19-2004, 05:54 AM
Maybe it was "Permission Denied"... I just meant that happens when the mouse is in "contact" with the focused window. It can be moved from a synchronized dialog window, but it's complicated & not usually worth the trouble, methinks.

12-19-2004, 06:48 AM
Ok, I wanted to make sure again: it's "Access is denied". The error only happens if the window has capture, such as with onmousedown; while resizeTo or moveTo work for me with onclick. I don't think it's a security issue, either, because that also happens in HTAs.