我现在调用下面的脚本来打印页面,可是在要打印的页面上有两个按钮,我想把它屏蔽掉,请问
要对下面脚本做什么修改来屏蔽掉按钮?
下面的脚本中用到了parent.main.document.body.innerHTML,这句话是不是就是把body中的东西打印出来,可是我把我要屏蔽的两个按钮放在了body的外面,它怎么还能打印的出来?
有哪位朋友知道,麻烦讲解一下好吗?很感谢!急需! <script LANGUAGE="JScript">
     function PrintNote(){ var PrintWin=window.open('about:blank','Print'); PrintWin.self.moveTo((screen.availWidth-700)/2,(screen.availHeight-500)/2); PrintWin.self.resizeTo(700,500);
        //parent.main.document.button2.visible=false; PrintWin.document.write('<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>' + parent.main.document.body.innerHTML); PrintWin.document.all.WebBrowser.ExecWB(7,1);   PrintWin.document.write('<script>'+'window.close();'+'<\/script>');       }
</script>