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

What is webpack used for?

0 Answers  


Are namespaces are there in javascript?

0 Answers  


What are limitations in javascript?

0 Answers  


What is ‘this’ keyword in JavaScript?

0 Answers  


What is decodeuri() function?

0 Answers  






What are the three core languages in web pages?

0 Answers  


What is bom?

0 Answers  


How do I enable cookies safari?

0 Answers  


How do you declare in javascript?

0 Answers  


What is createtextnode?

0 Answers  


What is escape() function?

0 Answers  


Can you give an example showing javascript hoisting?

0 Answers  


Categories