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. 5 13628
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.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
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="max imize()">
--
"The most convoluted explanation that fits all the available and made-up
facts is the most likely to be believed by conspiracy theorists"
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.
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="max imize()">
LOL
--
Dag.
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.outerWid th
window.outerHei ght
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/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: UmmagummA |
last post by:
How can I detect when the user minimize the form (when he/she press the
Mimimaze Box)?
|
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 they successfuly
download.
My problem revolves around detecting a successful download, the steps I take
to handle the download are as follows:
|
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 process (since
there are 99 processes, I'm trying to keep the screen clutter to a
minimum). Basicly, I start the app, then minimize, maximize, show, or
hide it based on the option chosen. My problem comes with the actual
app I'm monitoring. It...
|
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 processes dies, the app restarts it. One of the options
I've written hides the main window of the monitored process (since
there are 99 processes, I'm trying to keep the screen clutter to a
minimum). Basicly, I start the app, then minimize, maximize,...
|
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 relevant
name owner? If I make a whisky and call it "Jack Daniels", I most
probably will have some serious legal problems. "Mozilla" partially
appeared because NCSA stopped them from using "Mosaic" in the UA
string.
Is it some different...
| |
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
|
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
|
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 are set to 0,
or I subtract the width of the margins from the position of the text.
My question is: is there a technique for detecting browser print
margins? It'd be nice not to have to warn users to set them to
something specific.
|
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 ; Styleff_1024x768.css; Style_1280x1024.css ;
Styleff_1280x1024.css )
I want to set css style file depends on resolution browser
I wrote this script to detect type of browsers, but i don't have any idea
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |