Re: RE: Forms

by Wendy Melendez <MelendW(at)jcdc.jobcorps.org>

 Date:  Thu, 24 Sep 1998 14:20:28 -0500
 To:  <gerholdt(at)ait.fredonia.edu>
 Cc:  <hwg-graphics(at)hwg.org>
  todo: View Thread, Original
Hi Michael:

Is it?

OnSubmit="window.open ('thanks.htm',newWin','scrollbars=yes,status=yes,width=640,height=280')";>

Wendy
>>> "Michael Gerholdt" <gerholdt(at)ait.fredonia.edu> 09/24 1:15 PM >>>
Wendy Melendez wrote:

I am creating a form for a page, and I have a problem.  As you all have
seen, when you submit a form on the internet, right after you had put in all
the information and then click submit, it appears a new page saying:  Thanks
for ... your information has been sent ....

Please, if anyone know how to create this link let me know.

-------

In the head of the doc containing the form:

<SCRIPT LANGUAGE="JavaScript">
</SCRIPT>

And you use the OnSubmit event handler in the FORM tag, something like this:

<FORM METHOD="POST" NAME="RES" ACTION="mailto:gerholdt(at)ait.fredonia.edu"
OnSubmit="window.open
('thanks.htm','newWin','scrollbars=yes,status=yes,width=640,height=280')";>

where "thanks.htm" is the page to display in the new window. This does open
a new browser window of the above specified size without closing the page
the form is on, which may not be what you wish to do . . . it's the way I
chose to do it and I didn't figure out the way to open a new page in the
same window. Perhaps instead of 'window.open' you'd use 'window.self' or
something of the sort.

HTH,

Michael

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               !
!
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

HWG: hwg-graphics mailing list archives, maintained by Webmasters @ IWA