2

How do you open a URL in a separate window?

2322 0 1
Posted   3 years ago

I am trying to have a link open in a separate browser window but not in a modal. Is that possible? and if so, how do you do it? 

Comments

( 0 )

Answers  ( 1 )

2
avatar a416560   |    
Posted   3 years ago
  ●   Edited   3 years ago

You can add an interaction with some javascript. In Element Interactions pane, go to the Function field and click on the drop down and select Execute JavaScript. This not only enables you to have the URL open in a new window, but also gives you the ability to size and position that window.

Sample javascript to add 

window.open("http:/URL", "name", "width=1000,height=800,toolbar=0,scrollbar=1,menubar=1,statusbar=0");

And you only have to replace:"URL" and "name"

Comments

( 2 )
1
3 years ago     Chris Van Wingerden     1347   |   7  

Thanks for sharing this! For folks reading this who haven’t tried creating a link to a URL, when you create this action the drop down settings we offer are to open the link in a modal window over the current page or to open the link in a new browser tab. This tip is really great for those times when you need to open in a totally new browser window rather than just a new tab.

0
3 years ago     a416560     20   |   2  

Yes Chris - and I love all the options we have - modal window, new tab or new browser window altogether. It depends on the experience you want your users to have.