I am building a html page. I was to make a quick 1 line test which, if the user has javascript enabled says "javascript on" otherwise says "javascript off" just to let them know.
How can I do this?
<div id="js_onoff">JavaScript off :(</div>
<script>
document.getElementById("js_onoff").innerHTML = "JavaScript on, yeah! :)";
</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With