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 an object in javascript, give an example?
Is javascript faster than asp script?
What is the difference between rootscope and scope?
What is unshift method in JavaScript?
How to open a window with no toolbar, but with the location object?
How do I view javascript files in chrome?
What is the function of delete operator?
In Javascript are calculations with fractional numbers guaranteed to be precise?
How can you read properties of an Object in JavaScript?
Who is the world famous hacker?
Can I write javascript in notepad?
How to reload the current page?
Explain how to read and write a file using javascript?
How can I prevent others from reading/stealing my scripts or images?
How to convert a string to lowercase?