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

whether javascript runs on client side or server-side?

2 Answers  


Why javascript is fast?

0 Answers  


How to have the status line update when the mouse goes over a link (the support of the status line is sporadic)?

0 Answers  


Do you have to declare variables in javascript?

0 Answers  


Explain typecasting in javascript?

0 Answers  


How do you round a value in javascript?

0 Answers  


What are local variables in javascript?

0 Answers  


how can i change colour of a image in aspx file?

0 Answers  


What is array constructor in javascript?

0 Answers  


Can webassembly replace javascript?

0 Answers  


What is screen object in JavaScript?

0 Answers  


What is dhtml in javascript?

0 Answers  


Categories