Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 847
  • Last Modified:

how to iconify (minimise) a window

Hi all,

How to iconify (or minimise) a window?

I know how to close a window, window.close().

Thx

Simon
0
skcchan
Asked:
skcchan
  • 2
1 Solution
 
nilapennCommented:
window.blur();
0
 
skcchanAuthor Commented:
It dosen't work. The window is just lost focus.
0
 
b1xml2Commented:
lol,
you can try this:

window.resizeTo(0,0);
0
 
b1xml2Commented:
remember to add the following if you want the window to be seen by the user when receiving focus

//to show window
window.onfocus = function() { window.resizeTo(screen.width,screen.height);

//this portion is to reduce the size
//and then make it out of focus
window.resizeTo(0,0);
window.blur();

NOTE
====
There is no programmatic way to minimize the window. That is considered the exclusive preserve of the user and not the programmer. Also, it is considered bad practice to hide windows, what code is running behind the scenes...why hide the window if you have nothing bad going on...



0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now