Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

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 the data type of variables in javascript?

0 Answers  

Why is java better than javascript?

0 Answers  

Why do we need to declare variables?

0 Answers  

What is Unobtrusive JavaScript & Why it's Important?

0 Answers  

What is variables in javascript?

0 Answers  

What is the difference between an Anonymous Function and a named function?

0 Answers  

What is object cloning

3 Answers  

Hi Friends, I am new to java, please provide some use full docs, and where can i get basic Java script docs... thanx in advance

8 Answers  

What typeof returns for a null value?

0 Answers  

What are the datatypes in javascript?

0 Answers  

What is primitive data types in javascript?

0 Answers  

Can you have a function within a function in javascript?

0 Answers