chrome command open in new window code example
Example 1: electron open new window
const button = document.getElementById('<your_button_id>');
button.addEventListener('click', () => {
createBrowserWindow();
});
function createBrowserWindow() {
const remote = require('electron').remote;
const BrowserWindow = remote.BrowserWindow;
const win = new BrowserWindow({
height: 600,
width: 800
});
win.loadURL('<url>');
}
Example 2: javascript open in new window not tab
window.open('https://www.codegrepper.com', '_blank', 'toolbar=0,location=0,menubar=0');