The print() method 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.