Hello,
I was thinking if it is possible to check if javascript is disabled with php. I am not very experienced coder but was thinking that something like this might work:
<noscript>
<div id="script_disabled" type="hidden">
</noscript>
<?php
Check if id="script_disabled" exsists
if(exsists){
javascript disabled so do something
}else{
javascript enabled so do something else}
?>
Can I do this with PHP? I am not experienced with the syntax so would be great if somebody could show how it is written properly. Thanks for all answers!
I was thinking if it is possible to check if javascript is disabled with php. I am not very experienced coder but was thinking that something like this might work:
<noscript>
<div id="script_disabled" type="hidden">
</noscript>
<?php
Check if id="script_disabled" exsists
if(exsists){
javascript disabled so do something
}else{
javascript enabled so do something else}
?>
Can I do this with PHP? I am not experienced with the syntax so would be great if somebody could show how it is written properly. Thanks for all answers!