81
rated 0 times
[
85]
[
4]
/ answers: 1 / hits: 163679
/ 12 Years ago, sat, march 24, 2012, 12:00:00
print() doesn't work in IE after opening a new window. It works in Chrome.
Here's a tester:
<html>
<head>
<script type=text/javascript>
function openWin()
{
myWindow=window.open('','','width=200,height=100');
myWindow.document.write(<p>This is 'myWindow'</p>);
myWindow.focus();
myWindow.print(); //DOES NOT WORK
}
</script>
</head>
<body>
<input type=button value=Open window onclick=openWin() />
</body>
</html>
More From » html