views:

814

answers:

1

Is there anyway to automatically run: javascript:window.print() when the page finishes loading?

+7  A: 

<body onload="window.print()"> or window.onload = function() { window.print(); }

Greg
The second variation is the preferred method.
staticsan