1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <title>JavaScript Status</title> 6 <script type="text/javascript"> 7 var jsAllowed = false; 8 9 function onLoad() { 10 jsAllowed = true; 11 document.writeln("JavaScript Status: Allowed"); 12 } 13 </script> 14 <noscript> 15 <div class="noscriptmsg"> 16 JavaScript Status: Blocked 17 </div> 18 </noscript> 19 </head> 20 <body onload="onLoad()"> 21 </body> 22 </html> 23