那位高人能帮忙解决一下!为什么window.open(URL,"_blank")后,不执行window.print()。如何解决?
我写了这样的代码:
<html>
<head>
<title> Test.html </title>
<script type= "text/javascript ">
function openTest(){
var oNewWin=window.open(URL, "_blank ");
oNewWin.window.print();
}
</script>
</head>
<body>
<input type= "button " value= "openTest " onclick= "openTest() "> </input>
</body>
</html>
那位高人能帮忙解决一下!
------解决方案--------------------var oNewWin=window.open(URL, "_blank ");
oNewWin.print();