Why we use java script when java also supports validation?
Answer / justme
Those are two completely different things. Don't confuse
JavaScript with Java. Allthough based on the same language
types, they are very different and serve different purposes.
Validation within a web form is usually performed using
JavaScript, because you want to prevent the browser from
posting back the form until all fields are filled in
correctly.
That said, JavaScript can easily be bypassed or just simply
turned off in the browser, so never rely on it and always
validate your forms serverside as well!
Is This Answer Correct ? | 9 Yes | 0 No |
How can a page be forced to load another page in javascript?
What are decodeuri() and encodeuri() functions in javascript?
What is the data type of variables in javascript?
The below script is working Internet browser but not working in mozilla plz find that good way... function doSubmit(op){ var rowcount=document.getElementsByName ("parameterTypeId").length; var parameterGrade; var performance; var goal; if(op == "save"){ for (var i=0; i < rowcount; i++) { var param=eval("document.forms [0].parameterGrade"+i); if(param.value != "select"){ return true; } } alert("Please rate atleast one attribute"); return false; }//if ends here
What are the datatypes in javascript?
Explain the difference between == and === in JavaScript.
List some data types supported by javascript?
How to accessing elements using javascript?
If 2 methods have same name and same number of parameters, which one will be executed first?
What is null javascript?
What does isNaN function do?
What is the real name of JavaScript?