button1.style.display='' or button1.style.visibility=''

解决方案 »

  1.   

    显示button?这个样子?
    <script>
    function window.onload()
    {yunshui=document.getElementsByTagName("INPUT")
     for(i=0;i<yunshui.length;i++)
       if(yunshui[i].type=="button")
         alert(yunshui[i].outerHTML)
    }
    </script>
    <input type="button"><input type="button"><input type="button"><input type="button"><input type="text">
      

  2.   

    <button>button text</button>
      

  3.   

    谢谢各位
    隐藏:
    document.all("bSave").style.display="none";
    显示:
    document.all("bUpdata").style.display=""