![]() |
VOOZH | about |
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:
Example 1: In this example, we will open a new window on a button click with the specified parameters.
Output:
Example 2: In this example, we will open a blank window by passing the URL as an empty string.
Output:
Supported Browsers:
JavaScript is best known for web page development but it is also used in a variety of non-browser environments. You can learn JavaScript from the ground up by following this JavaScript Tutorial and JavaScript Examples.
HTML is the foundation of web pages and is used for webpage development by structuring websites and web apps. You can learn HTML from the ground up by following this HTML Tutorial and HTML Examples.