The print() method

Using the print() method the viewer can print the current web page. When this method is called, it opens the Print dialogue box so the viewer can adjust the printer settings and print the page.

<form>
<input type="button" value="Print the page" onclick="window.print();" />
</form>

Leave a Reply