Click to See Complete Forum and Search --> : java command to minimize window?


shawjames
05-14-2003, 01:05 AM
I am trying to figure a way to make a button that when clicked will minimize the current window. Is there a javascript command that will do this?

Gollum
05-14-2003, 02:08 AM
I'm pretty sure there isn't one. The reason being to prevent security attacks using code running in windows hidden to the user.

The best you can do is call window.blur() which will on some platforms send the window to the bottom of the window stack.

SniperX
05-14-2003, 02:28 AM
You could resize the window into a small block though.
i.e. at the bottom of the screen

boroarke
05-15-2003, 06:43 PM
What would the javascript be to do that? I am a newbie and need some help.
Thanks!!

havik
05-15-2003, 08:20 PM
To resize the window:
window.resizeTo(Width, Height)

to move the window:
window.moveTo(x, y)

Havik