Bubble.is open external website in new tab

A simple one!

To open an external website in a new tab using Bubble, you can use the window.open() function. Here's an example:

  1. Create a new element (e.g., a button) and add a click event to it.
  2. In the click event, add the following code:
    window.open('https://www.example.com', '_blank');

    Replace https://www.example.com with the URL of the external website you want to open.

The _blank parameter tells the browser to open the link in a new tab.

That's it! When the button is clicked, the external website should open in a new tab.

Note: Make sure to use the window.open() function instead of location.href or document.location.href, as the latter will open the link in the same tab.