| Posted by Ian B on 12/15/05 13:58 
<html><head>
 <title>          Best way I know is...         </title>
 </head>
 <body>
 <?php
 if(isset($_GET['js']))
 {
 echo "JS is on";
 //
 // Code for JS on
 //
 }
 else
 {
 echo "
 <form name='testjs'>
 <input type='hidden' name='js' value='on'>
 </form>
 <script>
 <!--
 document.testjs.submit()
 //-->
 </script>
 ";
 echo "JS is off";
 //
 // Code for js off
 //
 }
 ?>
 </body>
 </html>
  Navigation: [Reply to this message] |