Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q759 When a form is submitted how can I show a thank you page?

irt.org | Knowledge Base | JavaScript | Form 7.3 | Q759 [ previous next ]

Q759 When a form is submitted how can I show a thank you page?

To submit a form to email and then alter the current location requires a Frameset with a hidden frame:

<FRAMESET ROWS="100%,*">
<FRAME SRC="form.htm">
<FRAME SRC="blank.htm">
</FRAMESET>

Then when the form is submitted use:

<FORM ... onSubmit="parent.frames[1].location.href='trigger.htm'">

and then in trigger.htm:

<SCRIPT LANGUAGE="JavaScript"><!--
function tripIt() {
    parent.frames[0].location.href = 'thanks.htm';
}
setTimeout('tripIt()',5000);
//--></SCRIPT>

Feedback on 'Q759 When a form is submitted how can I show a thank you page?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.