hi all ;
I am new guy!
I need to know whether the webpage is the top active IE window
with javascript in the webpage,when I open 2 or more IE window.
tks in advance!
victor.zou 3 2627
On Sat, 31 Mar 2007 03:57:14 +0200, victorzou <vi********@hot mail.com
wrote:
hi all ;
I am new guy!
I need to know whether the webpage is the top active IE window
with javascript in the webpage,when I open 2 or more IE window.
tks in advance!
victor.zou
What if the user is browsing with Opera or Firefox? Don't you want to know
whether the web page is the topmost in those cases as well? Or do you only
need to know it if the user is browsing with MSIE?
Other than that, figuring out which window is the active topmost on a
user's computer can probably be figured out using window.onfocus( ) or
document.onfocu s().
Haven't tested this:
<html>
<body onfocus="alert( 'Hello, world!')">
<p>Hello, world!</p>
</body>
</html>
then when switching between different browser windows with the same page,
each page should alert.
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
OmegaJunior said the following on 3/31/2007 1:30 PM:
On Sat, 31 Mar 2007 03:57:14 +0200, victorzou <vi********@hot mail.com>
wrote:
>hi all ; I am new guy! I need to know whether the webpage is the top active IE window with javascript in the webpage,when I open 2 or more IE window.
tks in advance! victor.zou
What if the user is browsing with Opera or Firefox?
That wasn't the question, now was it?
Don't you want to know whether the web page is the topmost in
those cases as well?
Obviously not or the question would/could have been worded differently.
Or do you only need to know it if the user is browsing with MSIE?
That appears to be what was asked. Perhaps it could even be an MSIE
Intranet situation where no other browser is used.
Other than that, figuring out which window is the active topmost on a
user's computer can probably be figured out using window.onfocus( ) or
document.onfocu s().
Or probably not. Try reading the question again.
Haven't tested this:
Perhaps you should. And then follow your own advice in another thread:
<quote>
First: please to validate your page using a decent validator. Try this one: http://validator.w3.org/
</quote>
<html>
<body onfocus="alert( 'Hello, world!')">
<p>Hello, world!</p>
</body>
</html>
then when switching between different browser windows with the same
page, each page should alert.
And that still doesn't answer the question that was asked.
BTW, your posting agent is broken.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
On Sat, 31 Mar 2007 20:16:49 +0200, Randy Webb <Hi************ @aol.com
wrote:
OmegaJunior said the following on 3/31/2007 1:30 PM:
>On Sat, 31 Mar 2007 03:57:14 +0200, victorzou <vi********@hot mail.com wrote:
>>hi all ; I am new guy! I need to know whether the webpage is the top active IE window with javascript in the webpage,when I open 2 or more IE window.
tks in advance! victor.zou
What if the user is browsing with Opera or Firefox?
That wasn't the question, now was it?
>Don't you want to know whether the web page is the topmost in those cases as well?
Obviously not or the question would/could have been worded differently..
>Or do you only need to know it if the user is browsing with MSIE?
That appears to be what was asked. Perhaps it could even be an MSIE
Intranet situation where no other browser is used.
>Other than that, figuring out which window is the active topmost on a user's computer can probably be figured out using window.onfocus( ) or document.onfoc us().
Or probably not. Try reading the question again.
>Haven't tested this:
Perhaps you should. And then follow your own advice in another thread:
<quote>
First: please to validate your page using a decent validator. Try this
one: http://validator.w3.org/
</quote>
><html> <body onfocus="alert( 'Hello, world!')"> <p>Hello, world!</p> </body> </html> then when switching between different browser windows with the same page, each page should alert.
And that still doesn't answer the question that was asked.
BTW, your posting agent is broken.
Then please enlighten us and explain how the question can be interpreted
differently?
My posting agent broken? How so?
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mary Catherine |
last post by:
I have 2 scipts that I am trying to get to run on the same page. One
is a time/date script, the other is a countdown script (i.e. countdown
days, hours, mins until a given date). They both work independent of
each other, however, when both are on the page, the "active clock"
does not work. I am assuming it is because some of the variables are
the same???
Can anyone help please?!?!
Here are the 2 scripts:
**Active Clock that displays...
|
by: Christopher Benson-Manica |
last post by:
I have the following situation: Page A opens a window named 'foo'.
Page A then reloads itself. Is there a way for the reloaded Page A to
determine whether there is an open window named 'foo', *without*
calling window.open?
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
|
by: Jitendra |
last post by:
Hi!
I m facing a problem with 'javascript:void(0)'
Software Environ:-
IE: 6.0.2600.0000
OS: Windows 2000 Professional with Service Pack 4
Problem:-
I have a webpage with several links (<A> tags), now i have added
onClick and blocked HREF using 'javascript:void(0)' as below:-
|
by: Sarita Sai Bhushan |
last post by:
Hi,
While I was developing a active desktop web page in ASP.Net using server
controls I faced a problem with the autopostback property of server control.
The sever control I used in my aspx page is a dropdown box. After deploying
the page as a active desktop page whenever the selected index of the dropdown
box changes an autopopstback takes place and a new browser window opens. But
when the "autopost back" was replaced by the...
|
by: Atul |
last post by:
Hi,
I am running .NET Framework 2.0 on windows XP SP2. I am stuck in a situation
where I need to find out a list of all active sessions running in IIS for a
web application.
I know that .NET 2.0 has introduced a new class that facilitate this task
very easily, somehow couldnt recall its name.
Any help would be highly appreciated.
| |
by: Taoge |
last post by:
Hi,
Is there anyway to active print preview function in asp.net web page?
Thanks
|
by: babacrash |
last post by:
Hello,
I have designed a webpage mainly consisting in JavaScript code. It has to load an XML document's content when it is loaded so as to show a content depending on the XML data.
Both the HTML file and the XML file have to be stored locally on the computer and not on a server.
I only test in Internet Explorer, and the behaviour is very strange: on some machines, the XML file in well loaded, on some machines it isn't. I haven't seen...
|
by: Martin \(Martin Lee\) |
last post by:
Hi,
I am new in C sharp.
I make a button, when users click the button, I want it to open a webpage
(for example www.yahoo.com )
How to do? What should the code be?
Thanks!
|
by: =?Utf-8?B?UGF1bA==?= |
last post by:
Hi I tried a google search but could not find anything. I am trying to cause
one webpage to reload when a second web page is closed. The second webpage
loads data into a session variable and when closed I need to reload the first
page loading in the data from the session variable. Since I need to close
the sescond form just setting the post back url to the first page on the
close button from the second page is not quite what I am looking...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |