![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to open a new window using window.open and then print that window once it's loaded. It works fine in Firefox, but not at all in IE. No matter what I put in my onload, it gets ignored. Here's the code: function openPrintPage(loc) { var printWin = window.open(loc+'? snip printWin.onload = function() { printWin.print(); } } Even if I just put an alert in that printWin.onload, it doesn't do anything. My only guess is that the page has loaded before the onload function gets assigned, but I can't figure out a way to assign it otherwise. |
#3
| |||
| |||
|
|
I'm trying to open a new window using window.open and then print that window once it's loaded. It works fine in Firefox, but not at all in IE. No matter what I put in my onload, it gets ignored. Here's the code: function openPrintPage(loc) |
![]() |
| Thread Tools | |
| Display Modes | |
| |