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 is new function in javascript?

729


Where do you write javascript?

650


wap to accept an int array frm the user and print the lucky nos.

1777


Does apple use javascript?

602


What are nodes in javascript?

634


Please write the Code of simple javascript calculator withot eval() function

1667


How do I enable cookies safari?

642


In a pop-up browser window, how do you refer to the main browser window that opened it?

646


What is the difference between window.onload and ondocumentready?

666


How do you name a variable in javascript?

643


How to change the background color of HTML document using JavaScript?

691


How to convert javascript date to iso standard?

687


What is lazy loading java?

639


What is the reason for wrapping the entire content of a javascript source file in a function book?

758


How to create a confirmation box?

713