Issues I Can See
1.
[As reported by Sergey Alexandrovich Kryukov] -> that is
onsubmit
, not
önsubmit
.
2. As you are returning
boolean
value from function, you should write a
return
statement in the call like below (good practice).
onsubmit="return validate();"
3. Missing closing curly braces in the function.
function validate(){
alert("Your data is about to be validate!");
return false;
}
Suggestion
See the console window of
FireBug
in
FireFox
and check if you have any other errors.