Auto start print html page using javascript

fmsf picture fmsf · Oct 27, 2008 · Viewed 127.9k times · Source

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

Answer

Greg picture Greg · Oct 27, 2008

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