Jake
Jake

Reputation: 57

loading a no javascript version of a webpage

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

Answers (1)

t3dodson
t3dodson

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

Related Questions