3856
Views
11
Comments
How to open an external url in a new tab
Discussion
Hi guys,

How to make that an external url in a screen action opens in a new tab of the browser ?
I don't have access to extended proprieties to add a "target" "_blank' as it is for simple links .





2016-04-22 00-29-45
Nuno Reis
 
MVP
HI.

The right way would be to use target.
If you can't do it, maybe you want to create a temp page that: receives a link as parameter; automatically opens given link in new tab; goes back to the original page.
That way you can always point to that page and it will do the work.

It is not recommended because information may be lost jumping back and forward.
2012-03-02 13-17-21
Paulo Ramos
Staff
The 'extended properties' option is the most straightforward...
Optionally, you could build a web block that would modify the link in order to add the target=_blank atrribute to it - in a similar way as RichWidget's Popup_Editor, for instance.
UserImage.jpg
didier croughs
Thank you guys,
I have changed my sceen action to separate links with a if, it soluce perfectly the issue.




UserImage.jpg
Sat
didier croughs wrote:
Thank you guys,
I have changed my sceen action to separate links with a if, it soluce perfectly the issue.



excactly how did you do this ?
 
 
UserImage.jpg
Sat
in the extended properties section - in the expression editior of the value - what code do you exactly put in so that it opens a new tab ?
2012-03-02 13-17-21
Paulo Ramos
Staff
Sat wrote:
in the extended properties section - in the expression editior of the value - what code do you exactly put in so that it opens a new tab ?
 Hi Sat,

In the extended properties of the link/button, use:
  • Property: target
  • Value: "_blank"
See also (for your reference): https://www.w3schools.com/tags/att_a_target.asp

2017-05-09 04-36-24
The Count

Doesn't work for buttons


Platform 9.0

2017-05-09 04-36-24
The Count

Christos wrote: #OutOfDaBox

Doesn't work for buttons


Platform 9.0



2018-11-06 14-26-44
Suraj Borade

Hi Christos,

This will work only for link and not for buttons. 

Currently if you want to give it for button, you need to apply some css styles to your link so that link will look like button. I already have informed this issue to OutSystems.

Thanks and Regards,

Suraj Borade

2018-11-06 14-26-44
Suraj Borade

You can refer this link Open link in new tab.

-- Suraj B

2017-05-09 04-36-24
The Count

Suraj Borade wrote: Thanks Suraj, i implemented your pattern and it worked. Only downside is that the browser targeted it as a bad popup and blocked it. Otherwise a good workaround. Thanks.

You can refer this link Open link in new tab.

-- Suraj B



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.