Friday, 27 September 2013

javascript prompt with name

javascript prompt with name

If my form is filled out completely how do I prompt "Thanks for completing
the form, "name"!"
function submit_onclick() {
if(confirm("Thanks for completing the form " + form.name.value))
document.forms[0].submit();
else
return false;
}
this prompts even when form is empty.

No comments:

Post a Comment