JavaScript Popup Window and Print Tutorial

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.

Print

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

Take Your Free Live Demo Class Now

Enter Your DETAILS BELOW

To Get Complete Information or We Will Call You

We Will Send You the Course Fees Details In Below Number

Enter Your DETAILS BELOW

We Will Call Back You Shortly

Enter Your DETAILS BELOW

We Will Call Back You Shortly

Enter Your DETAILS BELOW

Enter Your DETAILS BELOW TO take

free demo class