Detect Javascript On/Off, With Notification

Submitted by:Tim Kelly

Date added:19 February, 2011


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.")

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