Streaming live at 10am (PST)

Open button link in a new tab AND redirect current tab


I have a button which when clicked, opens a site in a new tab (e.g.

However, I also want the current tab to redirect to another page of my site, e.g. a ‘Success’ page.

I setup the button link to open in a new tab, and it works great, however, when I add my code, it overrides this and ONLY opens the page I want (’/success’) in the current tab.

I have this code:


var BTN_1 = document.getElementById('cta');

//Do Something
function pageRedirect() {
      window.location.href = "/success";

BTN_1.onclick = pageRedirect; //Start action on click


Is there anything I can add / tweak above, in order to allow me to redirect in the current tab AND open the link I wanted in a new tab?

Hey, is anyone able to help please? :pray:

Add custom code block (Add element > embed) to form below submit button. Add following code to custom block:

document.getElementById('submitbtn').addEventListener('click', function() {"", "_blank")

Change button ID (for in page linking) to submitbtn. Change to new tab link. And set a redirect in the form settings: ("/success" for example)