javascript 引用 打印控件的问题 加了form标签后找不到控件对象
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<SCRIPT LANGUAGE= "JavaScript ">
<!--
function printit()
{
// 打印页面
wb.execwb(6,6);
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<form id= "printfrm ">
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
<object id= "wb " height= "0 " width= "0 " classid= "CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 " name= "wb "> </object>
<input name= "button " type= "button " onClick= "javascript:printit() " value= "打印 " />
</form>
</BODY>
</HTML>
加了form标签后找不到控件对象
去掉form标签能打印
但是由于asp.net必须要加 form标签
这个问题怎么解决啊?
------解决方案--------------------try:
document.getElementById( "wb ").execwb(6,6);