[thelist] Submit a form and shut the window
Christian Heilmann
lists at onlinetools.org
Tue Feb 1 16:08:21 CST 2005
Chris Kavanagh wrote:
> Dear List,
>
> I have a form in a little window, and it's supposed to update in the
> main window. I guess I can do that using JavaScript: the form action
> is the main page with a TARGET of the main window.
>
> But that will leave the little window floating around. Is there any
> way I can get the little b**tard to commit suicide once its work is done?
>
> Thanks!
> CK.
>
<form action="bla" target="parentwin" onsubmit="window.close()"> should
do the trick, shouldn't it?
More information about the thelist
mailing list