Open Print Dialog on Window Load - or something like that

I have created a “Printer Friendly” page so users can print out the pages oon the site without having all the graphics on the page, but they have to click a link, such as:

<a href="print.php?m_id=#" target="_blank">Printer Friendly Page</a>

but then they have to go up to the file menu, or click another link to print it, such as:

<a href="javascript:window.print()">Print This Page</a>

Is there a way to get the print dialog box to open automatically when the printer friendly page opens?



Try placing this piece of code in the head of your document:

<script type="text/javascript">
 window.onload = function() { window.print(); }

Worked a treat.

ta for that :slight_smile: