IE8在使用windows.print()打印时挂起,在mozilla中工作正常

时间:2013-10-15 11:22:39

标签: sharepoint

我们在共享点表单的超链接中使用了一个javascript“windows.print()”。这有时会在前两三次工作然后挂起,然后我们必须杀死IE。如果我们右键单击表单给出打印它将起作用

同样在Mozila工作正常。如果需要更多信息,请告诉我。

请你告诉

谢谢, Sijo JO

1 个答案:

答案 0 :(得分:0)

我已经更改为以下java代码并且有效

 function openDialog()
  {
   // Prompt user where to save, or use a input type of file 
   document.execCommand("Print",true,null);
  }


input type="button" id="htmlBtn" value="Save as an HTML document" onClick="openDialog()"