As a user I want a new window to open when I follow a link targeted at a blank page, or a page opens a new page. window.open() and target=_blank Note that you need to wait for the did-attach event to be fired on a webview before you can call webview.loadURL()
Activity
benfrancis commentedon Mar 8, 2025
See:
benfrancis commentedon Mar 21, 2025
https://www.electronjs.org/docs/latest/api/window-open
benfrancis commentedon Mar 21, 2025
https://stackoverflow.com/questions/74945364/when-a-open-in-new-tab-link-is-clicked-in-a-webview-element-it-opens-a-popup
https://stackoverflow.com/questions/44813403/allowing-an-electron-hosted-webapp-to-call-window-open-and-to-use-the-result-as
benfrancis commentedon May 16, 2025
My question: https://stackoverflow.com/questions/79625964/handling-window-open-from-a-webview
benfrancis commentedon May 27, 2025
https://www.electronjs.org/docs/latest/api/web-contents#contentssetwindowopenhandlerhandler suggested again on Stackoverflow