Is there an code example for open in a new tab like chrome?
There are no tabs built-in to Electron. You have to implement them yourself. Something like https://github.com/adamschwartz/chrome-tabs might help you get started.
I put together an NPM module and enhanced Adam’s chrome tabs by adding a jQuery wrapper, tab views, events, an API, and documentation. See: https://jaswsinc.github.io/chrome-tabs/ and https://www.npmjs.com/package/x-chrome-tabs
really nice work!
Thank you very much I hope it saves others some time.