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
How to reload the current page?
What is DOM? What is the use of document object?
just for testing
What is difference between local and global scope in javascript ?
How much do javascript programmers make?
How to you change the title of the page by javascript?
List some unit testing frameworks javascript
Is javascript faster than asp script?
What is array explain it?
How to add new elements dynamically?
How can you declare a class in javascript?
List few advantages of using javascript?
Explain how to detect the operating system on the client machine?
What is variable typing in javascript?
What is node ecosystem?