File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes To check for javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "To check for javascript" Watch "To check for javascript" New topic

To check for javascript

Ashok Kumar
Ranch Hand

Joined: Aug 27, 2004
Posts: 93
How do you check if javascript is enabled or disabled in a browser?Also i need the specifics for IE,FireFox and Mac browsers.

"Decide what you want, decide what you are willing to exchange for it. Establish your priorities and go to work."
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Moved to the HTML/Javascript forum.

[Asking smart questions] [About Bear] [Books by Bear]
Ashok Kumar
Ranch Hand

Joined: Aug 27, 2004
Posts: 93
I found a workaround for this problem.I thought others might benefit from it.So i am posting the code here.

The workaround here is we set a cookie and try to get it which is possible only if javascript is enabled.

replace Kookie with cookie
I agree. Here's the link:
subject: To check for javascript
It's not a secret anymore!