Open BrowserWindow in a BrowserWindow



New to electron, want to understand if we can possibly open browserWindow in a browserWindow.?

Maybe to create separate process, doing different things and also provding user interactions.


Hi, I think you actually want to open multiple browser window processes and have them communicate. You can open as many browser windows as you want (have not tested for an upper limit, my app uses 3). You’ll need to read up on using ipcMain and ipcRenderer.


If all you’re after is just another BrowserWindow created from your main BrowserWindow, you can do:

const BrowserWindow = require('remote').require('browser-window');

require('remote') basically gives you access to the modules that are available in your main electron.js.