Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print HTML pages,URGENT!

Status
Not open for further replies.

tweetie777

Programmer
Nov 22, 2001
14
0
0
ZA
I desperately need a javascript that will enable a button to automatically print 1 copy of the HTML page it is situated on, without bringing up the default print dialog.

The script I have is as follows, but it brings up the dialog:

<a href='javascript:;' onClick='window.print();return false'>Print this page.</a>

I wouldn't even mind if the dialog options such as &quot;number of copies&quot; etc could be disabled by putting in the appropriate paramaters in &quot;window.print()&quot;.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top