3912 (schnipsel)

   <!-- captain' s message -->
    <!-- script determination -->
    <script language="javascript">
      //popup message and default value
      var person = prompt("whoami", "captain");
      //filled ?
      if (person != null)
      {
        //fit ?
        if (person != "superuser")
        { 
          //this might not work in modern browsers (close window)
          this.focus();
          self.opener=this;
          self.close();
        }//end fit
      else 
        {
          //checked (!) and output
          alert ("Hi " + person + ", works?");
        }//end else
      }//end construct
    </script>
    <!-- /captain' s message -->

Leave a comment