Is there anyway to automatically run javascript:window.print()
when the page finishes loading?
Advertisement
Answer
<body onload="window.print()">
or
window.onload = function() { window.print(); }
Is there anyway to automatically run javascript:window.print()
when the page finishes loading?
<body onload="window.print()">
or
window.onload = function() { window.print(); }