Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

minimizing windows in IE5

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm trying to minimize a window in IE5. I tried window.resizeTo(1,1), but that leaves a small window on the screen. Can anyone help?
 
will you can use the self.blur() method which doesn't minimize it, but puts it behind other windows... jared@aauser.com
 
why not window.resize(0,0)? Also, you could try window.moveTo(-10000,-10000) which would place it off the screen of any resolution. Then you'll have to have a function to bring it back though.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Tom, you probably meant window.resizeTo(0,0). The problem is it preserves the browser chrome, unless you go into full screen mode first, but then I/m not sure how to get the browser chrome back.

Jorge,
window.moveTo() would work, but both of these methods may confuse the user, if they try to click on their taskbar and nothing happens - maybe onFocus check against an isminimized flag that you set and resize it back to (or better yet move it like Tom said) back to its original state. jared@aauser.com
 
Thanks for the help. It seems like a window.minimize function is needed in javascript. I'm going to use the self.blur() instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top