[Javascript] Handling child window visibility...
Paul McGuire
pmcguire at cguk.co.uk
Thu Aug 12 09:46:51 CDT 2004
<body onLoad="focus()" onblur="focus()">
Put the above in the popup window code, it will pop it to the front on most
operating systems, on win 2k and XP it flashes the taskbar tab.
Paul
----- Original Message -----
From: "Shawn Milo" <ShawnMilo at runbox.com>
To: <javascript at LaTech.edu>
Sent: Thursday, August 12, 2004 3:40 PM
Subject: [Javascript] Handling child window visibility...
I have a form which has a target attribute. This way,
when someone clicks the submit button on a page which
contains a Java graph applet, a new window opens with
a table of statistics based upon the data in the chart.
If the window is already open, it will simply refresh.
This is fine, but my concern is that if the new window
is in the background, users will fail to realize this, click
repeatedly, then call me for help.
I have thought of two options. The first is (if possible)
to check for the existance of the window during onclick
and close it. The second is to put JavaScript in the
onload of the new window to bring it to the top.
Are either of these possible, and are either
of these recommended? Any other solutions?
I am not creating this window with JavaScript by
using window.open() or anything --
just a normal HTML form with target="statWindow"
in the declaration.
Thanks,
Shawn
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list