<p>Is there anyway to automatically run <code>javascript:window.print()</code> when the page finishes loading? </p>

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