Skip to content
Advertisement

Different Browser Window should have different menu option in electron js

I need the 2 browser Window one is main Window and other one is child window i want to set the child Window – menu that menu should not reflect on the main window .

JavaScript

Advertisement

Answer

I’m not exactly sure what your asking but from what I can tell you want to set a menuBar on the main window and a different menuBar on the child window.

You can do this with win.setMenu(menu) like this:

JavaScript

Docs

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement