(One answer) 6 months ago
Environment: winodws10, IE11 (IE Settings Tab: Pop-up Settings: IE Auto-Determine)
The third parameter in javascript window.open()
is
toolbar=yes, location=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes
If all of the above options are set to yes, for some reason the tab opens.
If you set one of them to no, it will be opened in a new window, but if you know the reason why it doesn't open in a new window, please let me know.
The same is true of chrome and edge
javascript
I've heard that if you specify a window size (width, height), it will open in a new window.
Note:
It's a simple code, so it's very bad manners, but the small window opens as follows.
<html>
<body>
<button type="button" onclick="window.open('test.html', 'test', 'width=500px, height=400px')">button</button>
</body>
</html>
© 2024 OneMinuteCode. All rights reserved.