[thelist] Javascript popup & focus
Chris Marsh
chris at ecleanuk.com
Tue Dec 23 07:00:54 CST 2003
Dear all
Festive greetings.
I have a selection of pages in a website, and when they load they need to
know if a javascript popup window has been launched. If it has, then focus
needs to be given to the popup.
I have something like this for creating the window:
var win = window.open('foo.asp','bar','width=600,height=250');
And then I was looking at something like:
if (window.bar) {
window.bar.focus();
}
This obviously doesn't work, but can I do somehting similar?
Many thanks in advance.
Regards
Chris Marsh
More information about the thelist
mailing list