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 |
what are the differences between as2 and as3?
Difference between window, document, and screen in Javascript?
what is pop()method in JavaScript?
How to convert json object to string?
What is Associative Array? How do we use it?
What is a function constructor?
What does break and continue statements do in javascript?
What is the difference between undefined and not defined in JavaScript?
What is slug in javascript?
Is there automatic type conversion in JavaScript?
Write a program to reverse a string in pure javascript?
What are the Advantages and Disadvantages of JavaScript?