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



我们在share Point表单的超链接中使用javascript"windows.print()"。这在某个时候先工作了两到三次,然后挂起,然后我们必须杀死IE。如果我们右键单击表单进行打印,它将起作用

在Mozila中也是如此。如果需要更多信息,请告诉我。

请您指教

谢谢西条乔

我已经更改为下面的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()"

最新更新