W3C home > Mailing lists > Public > www-html@w3.org > May 2001

Window focus

From: Nathan Pearce <nathan.pearce@blueU.com>
Date: Tue, 8 May 2001 12:54:07 +0100
Message-ID: <701A9DA92AF2D411B98100508B4420930D7476@SERVER>
To: www-html@w3.org
Hello, Could anybody help with the follow problem ?

I have a html page with a href to open up another window. This window is
like a glossary or something, and uses the javascript open function. I call
the focus command each time a user clicks on the href again, so if the
window is already open, it just pops back up. This works fine.

I have to now introduce a href link to be able to toggle between the
windows. So a link on the popup window to focus the main window, and a link
on the main window to focus the popup window. This I have got working, if
the popup has existed in the past, but causes an error if it hasn't?

I am only setting the focus to the popup window if the popup window is not
null. This should have worked but doesn't?

Any ideas would be appreciated.

many thanks

Nathan Pearce
Courseware Developer
e-mail:  	nathan.pearce@blueu.com

******************* blueU CONFIDENTIALITY NOTICE *******************
This e-mail and any files transmitted with it are confidential
and may be legally privileged. They are intended solely for the use
of the individual or entity to which they are addressed.
If you have received this e-mail in error you should not copy
or use it for any purpose or disclose its contents to any person.
You should deliver the message to the intended addressee
or to the system manager.
Unauthorised use or disclosure is prohibited and may be unlawful.
**************** end of blueU CONFIDENTIALITY NOTICE ***************

 <<Pearce, Nathan (E-mail).vcf>>  

Received on Tuesday, 8 May 2001 07:55:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:57 UTC