View Full Version : move/resize window not working
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).
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.