Legacy Dev Forum Posts

 View Only

Sign Up

Third party links embed open in new window

  • 1.  Third party links embed open in new window

    Posted 06-05-2025 18:47

    SoporteHT1 | 2018-11-06 14:36:38 UTC | #1

    Hi, we tried to get integration with third party embed web on Pure Cloud. The site display correctly but when we click on any button to open a pop up window with client crm information, doesn´t show like popup, the link is opened in another window.

    In sandbox configuration options, we enabled popup windows value previously

    There is a way to control this by configuration? Is necessary change some property inside iframe or some change in third party pages?.

    Thanks for your help.


    Justin_Ray | 2018-11-06 17:51:29 UTC | #2

    There are a few reasons why you shouldn't do this:

    • Browsers, popup blockers, and users can all block this behavior
    • Popup behavior varies amongst browsers
    • Modals are considered bad UX these days
    • Done incorrectly, opened windows can expose vulnerabilities

    That said, if you are dealing with a legacy site and you control your users' browser configurations, you may be able to achieve this behavior by setting the allow-popups sandbox option and with javascript code such as the following:

    let myWindow = window.open('https://en.wikipedia.org', 'myCustomWindowName', 'width=500px, height=500px');
    myWindow.opener = null; // Block the popup from access back to the embedding app
    // See https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/

    See the article on MDN for extensive information on this feature, vulnerabilities, and UX concerns.


    SoporteHT1 | 2018-11-06 19:39:12 UTC | #3

    Thanks a lot Justin, we´ll tried this way.


    system | 2018-12-07 19:39:18 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 3915