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 are the requirements of web application using javascript?
Do you have to declare variables in javascript?
Why is javascript good for websites?
Is null in javascript?
What is called variable typing in javascript?
How to loop through array in javascript?
What is output of “20” + 20 + 20 and “20” + ( 20 + 20)? In javascript?
How to read a cookie using javascript?
What does two exclamation marks mean in javascript?
How do you check if a value is a number in javascript?
How do you add an element at the end of an array?
How to replace all occurrences of a string in JavaScript?
Why is javascript not oop?
What does question mark mean in react?
Event bubbling and Event Capturing in JavScript?