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 |
Where can I learn javascript?
What are the four basic data structures in javascript?
Are Typescript and Javascript the same?
What are the requirements of web application using javascript?
Which built-in method returns the index within the calling string object of the first occurrence of the specified value?
How do I view javascript in chrome?
What does === mean in js?
What is the concept of “functions as objects” and how does this affect variable scope?
How to detect the operating system on the client machine?
Can you explain the difference between == and ===?
Difference between window.onload and onDocumentReady?
Is it possible make a call to server side event of any button using javascript?