Javascript 打印预览

<html>
<head>
<SCRIPT LANGUAGE=javascript>
<!--
function setPrint()
{
myprint.ExecWB(8,1);
}
function previewPrint()
{
myprint.ExecWB(7,1)
}
//--
>
</SCRIPT>
</head>
<body>
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=myprint width=0>
</OBJECT>
<INPUT type="button" value="Set" id=button1 name=button1 onclick="setPrint();">
<INPUT type="button" value="Preview" id=button2 name=button2 onclick="previewPrint();">
</body>
</html>
posted @ 2005-01-20 10:29  让心灵去旅行  阅读(1014)  评论(1编辑  收藏  举报