We can use one button to give print command for the page at client side machine. The command print() will invoke the default print window at the client side. This command can be used along with a button or can be used inside the body tag of the page so the print command can be executed for the full page while page is loaded to the browser.
<input type=button onclick="window.print()" value='Print this page'>