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 |
If you need to hide the javascript code from the older browser versions, how will you perform it?
What are the predefined functions in javascript?
How to add a combo box dynamically at run time in Java script?
What Does JavaScript Void(0) Mean?
If 2 methods have same name and same number of parameters, which one will be executed first?
What is object in javascript?
Is JavaScript a case-sensitive language?
What do you use javascript for?
What is the purpose of using javascript?
What does isNaN function do?
What javascript method would convert the string “20” to an integer (on the fly) so “20” + 20 = 40?
How to create multiline strings in javascript?