faqts : Computers : Programming : Languages : JavaScript : Document

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

55 of 71 people (77%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How do I print a document automatically when it is loaded?
How can I print a window automatically when the document is loaded?

Feb 7th, 2000 02:52
Martin Honnen, unknown unknown,


Use the BODY ONLOAD handler together with the window.print function
  <BODY ONLOAD="if (window.print) window.print();">