JavaScript window.open() Method (original) (raw)
Last Updated : 5 Aug, 2025
The Javascript window.open() method is used to open a new tab or window with the specified URL and name. It supports various parameters that can be used to specify the type and URL location of the window to be opened.
**Syntax:
window.open(url, windowName, windowFeatures)
**Parameters: It has the following parameters as mentioned above and described below:
- **URL: It accepts the URL that will be open in the new window. If an empty string is provided then it will open a blank new tab.
- **windowName: It can be used to provide the name of the window. This is not associated with the title of the window in any manner. It can accept values like **_blank, _self, _parent, etc.
- **windowFeatures: It is used to provide features to the window that will open, for example, the dimension and position of the window.
**Example 1: In this example, we will open a new window on a button click with the specified parameters.
HTML `