473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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 13583
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
by: UmmagummA | last post by:
How can I detect when the user minimize the form (when he/she press the Mimimaze Box)?
2
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
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
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
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
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.