<p>I have a page with a "Print" link that takes the user to a printer-friendly page.  The client wants a print dialog box to appear automatically when the user arrives at the print-friendly page.  How can I do this with javascript?</p>

```
```
window.print();
```
```
unless you mean a custom looking popup.