Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checking whether scripting is enabled on browser

 
Vaibhav Patkar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii.....
I would like to know how to check whether javascript is enabled or not on client
browser through JSP.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't detect this using any Servlet or JSP API. All you can do is to cause something to happen on the client if JavaScript is enabled, and to detect its effect on the next submission. For example, you could change the value of a hidden input using JavaScript.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic