设置对象的style="display:none"就行了.

解决方案 »

  1.   

    但我要的是在打印前设定,平时要正常工作的,我问的是下载打印页面前是用那种属性,我用了onunload事件不行,好像是否有onbeforeprint事件,但我查了Dhtml.chm帮助,没有,请指教!
      

  2.   

    <script>
    function hid(){
    if (document.all.b.style.display=='none')
    document.all.b.style.display = 'block' ;
    else
    document.all.b.style.display = 'none' ;
    }
    </script>
    <input type=button name=b style="display:block" value=button>
    <input type=button name=b1 value=button1 onclick=hid()>
      

  3.   

    document.all.b.style.display = 'none' ;//隐藏
    window.print();//打印
    document.all.b.style.display = 'block' ;//显示
      

  4.   

    当然有onbeforeprint和onafterprint事件了!自己好好看看!msdn上有!还有楼上的那种方法很搞笑呀!print是异步的!