Q

How can i initialize the print function in JavaScript for a printable page, so that the user doesn't need to click a print-button ?

A

Just put this little script in your page and it will initialize the print pop-up automatically.

<script>
if (window.self) window.print();
</script>