Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect the Active Window out of 2 Windows

Status
Not open for further replies.

jnguyen

MIS
May 7, 2001
4
US
I have a site that uses ASP and HTML that bases its information on a set of Session Variables. Within one page, a user submits a form, which I have named "MainWindow" in JS, and opens a second window and redirect the window to a specific page. The second window, which I've used JS to name the Window.name property as ChildWindow, will create a second set of Session Variables in which the ChildWindow can base their reports on.

Depending on the window (either MainWindow or ChildWindow), I can use the correct set of session variables. The problem is that I would not be able to know if the user had clicked back on the MainWindow. I can't fire an onLoad event on the <body> tag to run any javascript because I'm not loading the document. I'm just focusing onto one window from another.

I know this is a difficult one but any help would be a lead. Thanks in advance...
 
have you tryed <body onfocus=&quot;func()&quot;> ?

excuse me if i missed something.. Victor
 
Thank you this is helpful.

Another question: Can you refer to an element say an input field within a form within another frame? If so, how do you do that?

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top