Using the 'noscript' Tag
<html> <head> <meta http-equiv="Content-Script-Type" content="text/javascript"> <title>My First JavaScript Script</title> </head> <body> <h1>What is returned?</h1> <script> <!-- document.write('<p>JavaScript is turned on!</p>'); //--> </script> <noscript> <p>JavaScript is turned off!</p> </noscript> </body> </html>