This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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: 64633
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