我写了这样的代码:
<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();