[thelist] Window targeting problem

Aylard James J jaylard at equilon.com
Mon, 17 Jan 2000 18:25:24 -0600


> But in fact, the
> pop-up window should handle any repeated form submissions that you throw
at
> it; if it's already open, your form will send its stuff to that already
open
> pop-up. The only problem that I've seen is that IE will not automatically
> put the focus back on that window when you write new stuff to it, although
> there are one or two simple techniques to work around that (such as
> including onload="self.focus();" in the body tag of your form-results
> document).

	A couple of points of clarification: the focus() method is
Javascript 1.1 (IE4 DOM in the IE world), so it doesn't work in Nav2 or IE3
(it'll throw an error). Of course, you can enclose "self.focus()" in a
script block with a language attribute of "javascript 1.1". I think that
Jeff also described another technique a month or so ago.(??)
	Also, some IE4.01 installations would open a new window each time
regardless, related to a bug in its "Browse in a new process" option
(http://support.microsoft.com/support/kb/articles/Q227/0/24.ASP?LNG=ENG&SA=A
LLKB). This was fixed in 4.01 SP2.

James Aylard
Equilon Enterprises LLC
jaylard@equilon.com