新規ウィンドウを開く

<button onclick="openWin()">ウィンドウを開く</button>
function openWin() {
  const win = window.open('https://yahoo.com', 'ウィンドウ名', 'top=100,left=100,width=300,height=400');

  win.focus();
}