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 is a function object?
Explain closures in javascript?
What are two-way data binding and one-way data flow, and how are they different?
What is called variable?
What is the context in javascript?
What is a hash javascript?
What is stack in javascript?
What is the role of break and continue statements?
discuss scoping in javascript?
What are the advantages of using external javascript?
Explain prototypal/differential inheritance?
Can I write javascript in notepad?