answersLogoWhite

0

The main advantage to JavaScript validation is that it allows for instantaneous feedback for the user. User's are less likely to become annoyed if the form is capable of telling them that their data is invalid right away.

Client-side validation also leads to less traffic. Rather than the server having to receive the entire HTML form POST, just to have it return an error, you can instead significantly cut down on the amount of data being sent to and from the server.

It's important to note that even with JavaScript validation, server-side validation in a higher language must be done. JavaScript is client side, so it's possible to circumvent JavaScript validation with very little effort. If you rely solely on JavaScript validation, you will eventually receive bad (even potentially harmful) POSTS at the server. A web developer that doesn't do server-side checks has a very short career.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
More answers

It can ensure users are satisfied with the data they enter at client-side.

User Avatar

Wiki User

14y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What are advantages of using JavaScript validations?
Write your answer...
Submit
Still have questions?
magnify glass
imp