Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
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

 Answers
14
[#86628] Friday, March 23, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tye

Total Points: 415
Total Questions: 103
Total Answers: 116

Location: Iraq
Member since Fri, Jun 5, 2020
4 Years ago
;