473,499 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Detecting browser minimize?

Is it possible to detect if the user minimizes the browser-window?

I do some polling, and want to stop it while the window in minimized,
but not when it only is blurred...

TIA...

--
Dag.
Jun 16 '06 #1
5 13592
Dag Sunde said the following on 6/16/2006 11:27 AM:
Is it possible to detect if the user minimizes the browser-window?
No.
I do some polling, and want to stop it while the window in minimized,
but not when it only is blurred...


Give up now before it gives you too many grey hairs :) You can't detect
minimizing.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 16 '06 #2
Randy Webb wrote:
Dag Sunde said the following on 6/16/2006 11:27 AM:
Is it possible to detect if the user minimizes the browser-window?


No.
I do some polling, and want to stop it while the window in minimized,
but not when it only is blurred...


Give up now before it gives you too many grey hairs :) You can't detect
minimizing.


Good thing - I can see it now:
<body onMinimize="maximize()">
--
"The most convoluted explanation that fits all the available and made-up
facts is the most likely to be believed by conspiracy theorists"
Jun 16 '06 #3
Randy Webb wrote:
Dag Sunde said the following on 6/16/2006 11:27 AM:
Is it possible to detect if the user minimizes the browser-window?


No.
I do some polling, and want to stop it while the window in minimized,
but not when it only is blurred...


Give up now before it gives you too many grey hairs :) You can't
detect minimizing.


Thanks!

--
Dag.
Jun 16 '06 #4
Tony wrote:
Randy Webb wrote:
Dag Sunde said the following on 6/16/2006 11:27 AM:
Is it possible to detect if the user minimizes the browser-window?


No.
I do some polling, and want to stop it while the window in
minimized, but not when it only is blurred...


Give up now before it gives you too many grey hairs :) You can't
detect minimizing.


Good thing - I can see it now:
<body onMinimize="maximize()">


LOL

--
Dag.
Jun 16 '06 #5


Dag Sunde wrote:
Is it possible to detect if the user minimizes the browser-window?

I do some polling, and want to stop it while the window in minimized,
but not when it only is blurred...


There is no event that fires when the browser window is being minimized
but at least Mozilla/Firefox changes
window.outerWidth
window.outerHeight
when the window is minimized.
For instance here with Firefox 1.5 on Windows XP a minimized browser
window the browser reports the dimensions as
outerWidth: 160
outerHeight: 31
So your polling code could check for such a low outerHeight and stop
polling as long as the outerHeight is lower than a certain limit.

But note that I have not checked on other platforms, nor with other
browsers.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jun 17 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1698
by: UmmagummA | last post by:
How can I detect when the user minimize the form (when he/she press the Mimimaze Box)?
2
3022
by: Sam-Kiwi | last post by:
I've spent the last 6 months developing a pay-per-download website using ASP.NET Users purchase documents and then download them. The intention is that users are only charged for documents...
0
1366
by: bamapookie | last post by:
I've written an app that starts and monitors a number of processes. If one of those processes dies, the app restarts it. One of the options I've written hides the main window of the monitored...
0
1429
by: bamapookie | last post by:
I'm sorry if this was posted several times. I did not see my previous post appear after I posted it. I've written an app that starts and monitors a number of processes. If one of those...
79
3703
by: VK | last post by:
I wandering about the common proctice of some UA's producers to spoof the UA string to pretend to be another browser (most often IE). Shouldn't it be considered as a trademark violation of the...
7
9314
by: Lee | last post by:
Hi, How do I detect when a form is minimizing? specifically when a user clicks the show desktop button on the taskbar, rather than the minimize button on a form. thanks in advance
4
1949
by: =?Utf-8?B?WWFuZw==?= | last post by:
Hey guys...does anyone of you know the coding behind a button function to minimize the browser? As i am not very good at coding...detailed explanations would be greatly appreciated.Thanks
1
2300
by: Mango | last post by:
I'm trying to print some text in a very specific position on a page, so that it will show through the window of an envelope when folded. This is easy to do, as long as the browser's print margins...
1
4135
by: Grzegorz Klimsa | last post by:
Hi ! I have a problem wiht detecting resolution of client web browser I prepare several files of css style for different browsers and different resolutions, (such as : Style_1024x768.css ;...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.