Why we use java script when java also supports validation?



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

Post New Answer

More JavaScript Interview Questions

java pgm for reads a file(text file) and removes all the spaces then the text and write this back into the same file. e.g: (Input) _______ chennai is fourth biggest city in india. (output) _______ chennaiisfourthbiggestcityinindia.

0 Answers  


What is the difference between push() and concat() in javascript?

0 Answers  


Where can I learn javascript for beginners?

0 Answers  


How to call a function inside a function in javascript?

0 Answers  


Does javascript have the concept level scope?

0 Answers  


What are the Non-primitive data types in JavaScript?

0 Answers  


How to access the value of a textbox using javascript?

0 Answers  


How host objects are different from native objects in javascript?

0 Answers  


Does apple use javascript?

0 Answers  


How to set a html document's background color?

0 Answers  


Why is currying called currying?

0 Answers  


What is javascript and how it works?

0 Answers  


Categories