[thelist] Submit a form and shut the window

Robert Vreeland vreeland at studioframework.com
Tue Feb 1 15:55:52 CST 2005


Not 100% sure, but I think that would close the window before the form
submitted as you typically use onsubmit with a return:
onsubmit="return somefunction();"

Robert Vreeland
Managing Partner
StudioFramework
----- Original Message ----- 
From: "Christian Heilmann" <lists at onlinetools.org>
To: <thelist at lists.evolt.org>
Sent: Tuesday, February 01, 2005 5:08 PM
Subject: Re: [thelist] Submit a form and shut the window


> 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?
>
>
>
> -- 
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !



More information about the thelist mailing list