[thelist] JS?: Target = opener?

Tab Alleman talleman at RealMetros.com
Wed Dec 5 14:13:13 CST 2001


Anybody know a way to specify, as the target of a form, the opener of
the window that contains the form?

I tried this:

<!--
	function frmHandler(frm)
		{
		var MW = window.opener.name;
		frm.target = MW;
		frm.submit();
		return true;
		}
// -->

and when I clicked the <button> that calls this function, the form did
submit, so I know the function was called and the form-reference was
passed.  But the next page opened in the same window, not in the
window's opener.

I'll keep playing with it, but anybody spots my undoubtedly glaring
error and points it out, I'd sure appreesh!

Tab




More information about the thelist mailing list