Is it possible to do checking and verification of JavaScript state in a browser ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
At the top of your index.php you could do something like
So, if the browser had JS enabled, it would be redirected to a special index page, which could in turn set a session variable, e.g.
$_SESSION['has_js'] = true;If the browser doesn’t have JS enabled, the page won’t be directed, so
$_SESSION['has_js']won’t ever be set.