Window open() Method
The open() method opens a new browser window.
Syntax
window.open(URL, name, specs, replace)
Example: 1
Click the button to open a new browser window.
Example: 2
Open a new browser window with google.com whenever you load a page.
The print() method prints the contents of the current window. The print() method opens the Print Dialog Box, which lets the user select preferred printing options.
Syntax
window.print()
Example
Print the current page