Solved

how to iconify (minimise) a window

Posted on 2002-03-07
4
822 Views
Last Modified: 2012-05-04
Hi all,

How to iconify (or minimise) a window?

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

Thx

Simon
0
Comment
Question by:skcchan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Expert Comment

by:nilapenn
ID: 6849574
window.blur();
0
 

Author Comment

by:skcchan
ID: 6849836
It dosen't work. The window is just lost focus.
0
 
LVL 23

Expert Comment

by:b1xml2
ID: 6849874
lol,
you can try this:

window.resizeTo(0,0);
0
 
LVL 23

Accepted Solution

by:
b1xml2 earned 100 total points
ID: 6849884
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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question