I need to set the onload attribute for a newly popped-up window. The following code works for Firefox:
The final (admittedly, poor) solution that worked for all browsers was to use setTimeout and call print() that way, instead of modifying the onload attribute: