In Chrome and Edge this simple example results shows a "Click Me!" button that opens a new tab.
function test() {
var myWindow = window.open("", "_newtab");
myWindow.document.write("hello world");
}
<button onclick="test()">
Click Me!
</button>
The issue is that the new tab appears to be still loading after it is displayed.