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

Questions and comments about currently under development PWB v3

Moderators: Tyler, Scott

Post Reply
dsavage
Observer
Observer
Posts: 2
Joined: Tue Apr 07, 2026 9:31 am

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

Post 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.

Scott
Site Admin
Site Admin
Posts: 2574
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

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

Post 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

dsavage
Observer
Observer
Posts: 2
Joined: Tue Apr 07, 2026 9:31 am

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

Post 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

Scott
Site Admin
Site Admin
Posts: 2574
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

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

Post by Scott »

What is the URL you are testing with?

--Scott

Post Reply