Page 1 of 1

Hyperlink won't open in new window, only in new tab

Posted: Tue Apr 07, 2026 9:37 am
by dsavage
I have:

DisableNewWindow=FALSE
DisableNewTab=TRUE
DisableNewWindowInit=FALSE

but the hyperlinks don't do anything when clicked. If I change DisableNewTab to FALSE, they will open in a new tab.

The hyperlinks use target="_blank" to force a new window.

How can I make PWB open in a new window?

Thanks.

Re: Hyperlink won't open in new window, only in new tab

Posted: Tue Apr 07, 2026 10:15 am
by Scott
Generally hyper links that use "target="_blank" will open in a new tab window not a new browser window.

https://www.w3schools.com/tags/tryit.as ... ink_target

To open a new browser window you need to do something like the following.

Code: Select all

<button onclick="window.open('https://example.com', 'popup', 'width=600,height=400');">
  Open Popup
</button>
--Scott

Re: Hyperlink won't open in new window, only in new tab

Posted: Tue Apr 07, 2026 12:29 pm
by dsavage
Scott wrote: Tue Apr 07, 2026 10:15 am Generally hyper links that use "target="_blank" will open in a new tab window not a new browser window.

https://www.w3schools.com/tags/tryit.as ... ink_target

To open a new browser window you need to do something like the following.

Code: Select all

<button onclick="window.open('https://example.com', 'popup', 'width=600,height=400');">
  Open Popup
</button>
--Scott
Thanks Scott,

We'll try this and let you know.

I'm curious though, why PWB is not letting the browser open new windows. Even if we right click on the link and choose "Open in new Window", nothing happens. Yet, the links open fine if we paste the link into the address bar. If your solution works, that is fine since we control the homepage that PWB is opening, but if we did not, we'd be stuck. Older versions (we used CEF) didn't have any issue opening these links. Are there other settings that we are missing?

David

Re: Hyperlink won't open in new window, only in new tab

Posted: Tue Apr 07, 2026 1:44 pm
by Scott
What is the URL you are testing with?

--Scott