Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Location
    Port Huron, MI, U.S.A.
    Posts
    280
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.
    Oh, was I supposed to put something here? ........

  • #2
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't think you can. At least, IE will throw an "Access Denied" exception, if the window has mouse capture (IIRC).
    *this message will self destruct in n-seconds*

  • #3
    Regular Coder
    Join Date
    Jan 2004
    Location
    Port Huron, MI, U.S.A.
    Posts
    280
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That's wierd. It worked before (there was a mouse capture thing being used.) Oh Well.
    Oh, was I supposed to put something here? ........

  • #4
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    *this message will self destruct in n-seconds*

  • #5
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    *this message will self destruct in n-seconds*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •