![Write JavaScript to open a new window when a link on a page is clicked. The new window opened, is closed by placing a button on the window & writing JavaScript code Write JavaScript to open a new window when a link on a page is clicked. The new window opened, is closed by placing a button on the window & writing JavaScript code](https://i.imgur.com/i070pKR.jpg)
Write JavaScript to open a new window when a link on a page is clicked. The new window opened, is closed by placing a button on the window & writing JavaScript code
![html - JavaScript - open new window and display as a tab (chrome CTRL+N equivalent) - Stack Overflow html - JavaScript - open new window and display as a tab (chrome CTRL+N equivalent) - Stack Overflow](https://i.stack.imgur.com/A369T.png)
html - JavaScript - open new window and display as a tab (chrome CTRL+N equivalent) - Stack Overflow
![javascript - How does one prevent the opening of a new tab or window when hyperlink behavior was created virtually by e.g. an HTML button's "click" event handling? - Stack Overflow javascript - How does one prevent the opening of a new tab or window when hyperlink behavior was created virtually by e.g. an HTML button's "click" event handling? - Stack Overflow](https://i.stack.imgur.com/8oG5w.png)