Detect if Javascript is disabled?
Posted: Wed Feb 25, 2009 4:09 am
How can I detect if Javascript is disabled? The <noscript> tag works but everyone on the web says it shouldn't be used because it's a deprecated tag.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
I don't think there's an alternative so I just use it regardless. I don't care what "everyone" says, I care whether or not it works.Sindarin wrote:How can I detect if Javascript is disabled? The <noscript> tag works but everyone on the web says it shouldn't be used because it's a deprecated tag.
Code: Select all
<script src="set__js_enabled__in__session.php"></script>Code: Select all
<noscript> <img src="some.php" /></noscript>