Detect Javascript On/Off, With Notification

Submitted by:Tim Kelly

Date added:19 February, 2011

Category:JavaScript

Detect Javascript On/Off, With Notification: If JavaScript is on the user gets a welcome message. If off, the user is instructed to turn it on.

Tags: detect javascript on , notification of javascript on , javascript notified

Code Snippet:

<script type="text/javascript">
document.write("Welcome, you have Javascript on.")
</script>

<noscript>JavaScript is off. Please enable to view full site.</noscript>
 
 

Comments