August 1999
Intermediate to advanced
1488 pages
72h 53m
English
window.print()
The print() method of the Window object simulates the user clicking the Print button on the browser. It tells the browser to open the print dialog box to print the current page.
Listing 7.572 has a button. Clicking the button will tell the browser to open the Print dialog box to allow the user to print the current page.
<html> <body> <form> <input type=BUTTON value="Print" onClick="window.print()"> </form> </body> </html> |
Read now
Unlock full access