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


Please Help Members By Posting Answers For Below Questions

What are parameters in javascript?

471


Create a new javascript object with the keys of “fname” equal to your first name, “lname” equal to your last name, and “fcolors” equal to and array of 3 of your favorite colors. Assign this object to a variable called “me” and log it to the console.

607


Is a parabola a function?

460


What are local variables in javascript?

474


what is pop()method in JavaScript?

520






Text from your clipboard?

478


How generic objects can be created?

470


How do you sort in javascript?

512


Explain the difference between javascript and an asp script.

497


What do you use javascript for?

487


What are the Advantages and Disadvantages of JavaScript?

518


How to manage exception handling in javascript?

493


What does js stand for?

462


What is a null variable in javascript?

508


What is output of “20” + 20 + 20 and “20” + ( 20 + 20)? In javascript?

578