Reputation: 57
I have developed a webpage that requires very little javascript. Although I still need to make the site work for all users. So first I ask, is there a way to hid a single div when javascript is disabled. If this is not possible how would I go about loading a different version of the page that doesn't have the div in it
Upvotes: 0
Views: 72
Reputation: 4007
Use the noscript tag http://www.w3schools.com/tags/tag_noscript.asp
<script>
document.write("Hello World!")
</script>
<noscript>Your browser does not support JavaScript!</noscript>
Upvotes: 3