faqts : Computers : Programming : Languages : JavaScript

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

1 of 4 people (25%) answered Yes
Recently 1 of 4 people (25%) answered Yes

Entry

How do I get a hard copy of text generated using document.write() in NN4?

Apr 5th, 2008 20:42
ha mo, Colin Fraser, Vijai Julian,


You cannot.. simply put, document.write() relates to placing text onto
the screen it has nothing to do with printing the document.
Ctrl-P will activate the print dialogue.
In JavaScript, the print() function works in NN 4+, 6+ and Internet
Explorer 5+, well it is supposed to, try
if (window.print)
    window.print();
If the browser does not support the print() function it wont
work..simple..
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com