Why we use java script when java also supports validation?



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

Post New Answer

More JavaScript Interview Questions

How can a page be forced to load another page in javascript?

0 Answers  


What are decodeuri() and encodeuri() functions in javascript?

0 Answers  


What is the data type of variables in javascript?

0 Answers  


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

0 Answers  


What are the datatypes in javascript?

0 Answers  


Explain the difference between == and === in JavaScript.

1 Answers  


List some data types supported by javascript?

0 Answers  


How to accessing elements using javascript?

0 Answers  


If 2 methods have same name and same number of parameters, which one will be executed first?

0 Answers  


What is null javascript?

0 Answers  


What does isNaN function do?

2 Answers   Satyam,


What is the real name of JavaScript?

0 Answers  


Categories