aspose file tools*
The moose likes JSP and the fly likes Checking whether scripting is enabled on browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Checking whether scripting is enabled on browser" Watch "Checking whether scripting is enabled on browser" New topic
Author

Checking whether scripting is enabled on browser

Vaibhav Patkar
Greenhorn

Joined: Jan 28, 2008
Posts: 1
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

Joined: Jan 10, 2002
Posts: 61654
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Checking whether scripting is enabled on browser