web页局部打印

< script language = " javascript " >
<!--
function PrintNote()
{
var PrintWin = window.open( ' about:blank ' , ' Print ' );
PrintWin.document.write(
' <object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object> ' + document.all( " PrintContent " ).innerHTML);
PrintWin.document.all.WebBrowser.ExecWB(
7 , 1 );
PrintWin.close();
}
-->
< / script>

你可能感兴趣的:(Web)