- To open a new tab, we have to use _blank in the second parameter of the window.open() method.
- The return value of window.open() is a reference to the newly created window or tab or null if it failed.
- Do not add a third parameter to it as it will result in the opening of a new window rather than a tab
Supported Browsers: The browsers are supported by the window.open() method are listed below:
- Google Chrome
- Internet Explorer
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.
Please Login to comment...