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
What is Number object in JavaScript?
What are decodeuri() and encodeuri() functions in javascript?
what does javascript null mean?
What is the use of a set object in javascript?
In Javascript are calculations with fractional numbers guaranteed to be precise?
What are types of javascript?
What do ellipses mean in javascript?
What is null javascript?
Is javascript object a hash table?
What are data structures in javascript?
What is servlet in javascript?
What is node value?
What is the difference between registerclientscriptblock and registerstartupscript?
What are 2 (shorthand) boolean operators supported by javascript
What is Date object in JavaScript?