I have some doubt in my mind that if a jsp page onclick() calls a JavaScript method.
I have two scenarios
onclick="return validatePage();"onclick="validatePage();"
What is the difference between these two types calling of JavaScript methods.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you return false from the javascript function ,onclick = “return validatePage();” wont submit the form values.
where as, in the case of onclick = “validatePage();” will submit the form values even if you return false from the Javascript function.