Via the `print()` function, we can print the content of a webpage.
The function takes no argument and there’s no return value.
Simply call the function and the Print dialog box will appear on the browser so that the user can proceed to print the page.
Window print() Method Syntax:
Window print() Method Parameter:
The method does not take an argument.
Window print() Method Return Value:
The method does not return a value.
Note: the `onclick` attribute is an event handler that will be explained in later sections.
In short, here if we click on the `Click to print` button, the Print window will appear and we can then print the page.