You can use the below code to check whether JavaScript is enable in client machine or not.
Suppose you have two pages
1. test.htm
2. noscript.htm (to show message)
Put below code in your test.htm page if javascript is disable in client machine then test.htm does not open and it redirects to noscript.htm. At noscript.htm you can show the message that your javascript is not enable like this
<noscript>
<meta http-equiv="REFRESH"content="0;URL="noscript.htm">
</noscript>
Above is the easy way to check whether JavaScript is enable on client machine or not
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.