<script>
  function f1()
  {
   if(true)
   {
     document.all.label.innerText="错误";
   }
   else
   {
   //
   }
  }  </script>
  <form name="form1" ID=Form1>
     <input type="text" value="s" id="inputtext1">
   <input type="button" value="0000" onclick="f1();" ID=Button1>
   <label id="label"></label>
     
  </form>