<html> <head> <?php if(!isset($_REQUEST['JS'])){?> <noscript> <meta http-equiv="refresh" content="0; url='<?php echo basename($_SERVER['PHP_SELF']);?>?JS='"/> </noscript><?php } ?> </head> <body> <?php if(isset($_REQUEST['JS'])) echo 'JavaScript is Disabled'; else echo 'JavaScript is Enabled'; ?> </body> </html>
// The basic check if(document.readyState === 'complete') { // good to go! } // Polling for the sake of my intern tests var interval = setInterval(function() { if(document.readyState === 'complete') { clearInterval(interval); done(); } }, 100);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)