Form Submit Thanks Page

[Total: 0    Average: 0/5]

Want to say thanks before submitting a form?

Body Code:

the body tag must have this in it for this to work onunload="doIt()"
<script>
onunload=doIt();
function doIt()
{
var _c  ="";
    _c +="<html><head><title>Thanks - Please wait</title></head>";
_c +="<body>";
_c +="<h3>Thanks - Please Wait</h3>";
_c +="<"+"script>";
_c +="document.location='"+document.formname.action+"?p="+document.formname.p.value+"';";
_c +="</"+"script>";
_c +="</body></html>";
  document.open();
  document.write(_c);
  document.close();
}
</script>
<form name=formname action="http://www.js-examples.com/">
<input type=text name=p value="data">
<input type=submit>
</form>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *