2

Is there any way to perform client side form validation when JavasSript is disabled in browser?

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335

2 Answers2

6

HTML 5 introduces some validation features (limited browser support), but other than that — no.

However, you shouldn't worry too much about it since:

  • most users will have JS supporting browsers with JS enabled
  • you need to have have server side validation in place (since client side validation can save users from making mistakes, but it can't prevent malicious attacks) and if JS isn't available, then it will simply fall back to the server and you get the same result with just an extra HTTP request added.
Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
1

There's HTML5 form validation, and AFAIK Opera supports it even if client-scripting is disabled. See:

http://www.the-art-of-web.com/html/html5-form-validation/

Do any browsers yet support HTML5's checkValidity() method?

Community
  • 1
  • 1
mamoo
  • 8,156
  • 2
  • 28
  • 38