alter(name); 应该是alert

解决方案 »

  1.   

    改为:<head> 
    <script language="javascript"> 
    function show(name){ 
    alert(name); 

    </script> 
    </head> <body> 
    <form id="form1" name="form1" method="post" action=""> 
      <label> 
      <input type="button"  value="按钮" onclick="show('123')"/> 
      <input type="button"  value="按钮" onclick="show(456)"/> 
      <input type="button"  value="按钮" onclick="show('***')"/> 
      </label> 
    </form> 
    </body> 
    </html>