Solved: print page button html

The main problem related to print page button html is that it does not work in all browsers.

 code

<input type="button" value="Print this page" onclick="window.print()">

This code line creates a button that, when clicked, will print the current page.

Print in HTML

To print in HTML, use the print() function. For example:

print(“Hello World!”)

What is Print Page for

Print Page is an attribute of a

element that tells the browser to print the content of the div on one page.

Related posts:

Leave a Comment