Why we use java script when java also supports validation?
Answer Posted / 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 View All Answers
Why is javascript not oop?
what is the function of public class main ?
How to use strings as array indexes using javascript?
Is javascript case sensitive?
How to print a web page using javascript?
What is are the types of the pop up box es available in javascript?
How to manage exception handling in javascript?
Why do we need javascript?
What is callback in javascript?
Define closure.
What are javascript closures?when would you use them?
Which built-in method returns the index within the calling string object of the first occurrence of the specified value?
What is triple dot in javascript?
Is javascript object a hash table?
What can be the challenges during testing a program or a system?