External Link - Open in a New Window

I have an app with external links. I can use the dialogue box for the link to open the page in a new tab. But, I can’t find a way to tell Bubble to open the link in a new window.

I’ve read the posts on external link, but I can’t find one that addresses opening the link in a new window instead of a new tab.


Are you using an action? If so, read this https://bubble.io/reference#Actions.OpenURL

Otherwise, if this link is in something like an HTML element on your page, then you could use regex to add the desired Target attribute. https://www.w3schools.com/tags/att_a_target.asp

1 Like

Thanks for the suggestions. In my effort to have the external URL open to a new window, I’ve done the following:

  1. Inserted HTML into the Bubble web page using “<a href=“Current cell’s DomainsUploaded’s Domain”, target = “_blank”>Click to visit website” Where DomainsUploaded’s Domain is dynamic and picks up the value of the URL (i.e., Domain) in the repeating group Domain’s Uploaded.
    Result: Click the text “Click to visit website” and the URL opens in a new tab.

  2. Implemented a Button titled “Open” with a Workflow Action that opens an external website with a dynamic value Current cell’s DomainsUploaded’s Domain (the URL I want to navigate to).
    Result: Click the button, and the URL opens in the same window.

  3. Implemented a Link with the dynamic “Current cell’s DomainsUploaded’s Domain”. Check the box “Open in a new tab” in the Link dialogue box.
    Result: Click the link and the URL opens in a new tab.

I looked at the https://www.w3schools.com/tags/att_a_target.asp page. The target attribute with a value of “_blank” opens the linked document in a new window or tab. Note the “new window or tab”. I could not find a parameter that specifies new window only.

At this point, I believe that there is no way to force a URL to open in a new window within the code of a web page. The user can right click on Link or HTML text and choose the option “Open Link in New Window”. But, the web page code cannot force that to happen.

I welcome any corrections to my understanding.

1 Like

Have you tried this plugin? New window works but pop up blocker will stop it.

1 Like