Is there a way that I can verify in my PHP script if a user has JavaScript enabled and if not print a message saying - you don't have JS enabled - ?
Many thanks.
Is there a way that I can verify in my PHP script if a user has JavaScript enabled and if not print a message saying - you don't have JS enabled - ?
Many thanks.
Create a form on the HTML page. Put a form on the page with a hidden field called JS and default it to zero. On the submit button, use the Javascript event "onsubmit" to change the value for form.js.value to "1". Then, in your PHP, check to see if JS==1. If it does, then you know the user has Javascript.
Or u can make it like this ...
<noscript>
<meta http-equiv="refresh" content="0;URL=no_js.html">
</noscript>
yup... no script is the way togo