Search code examples
popuppopupwindowcrossridermodal-popup

appAPI.openURL Issue in Firefox and IE


I am facing a Issue in appAPI.openURL parameter popup.

I expected popup parameter will open my URL as popup window. but it is popping under the main window. which is not my requirement.

I need to open my window as popup (modal popup) but not as pop under.

this is how i am doing it

appAPI.openURL({
url: href,
where: "popup",
focus: false
});

Any help would be appreciated.


Solution

  • Opening a modal window/popup has limited support by browsers/JavaScript and is less likely to work/be supported cross browser.

    The nearest cross browser option you can achieve is to specify the where property of appAPI.openURL as window to open a popup window that is not modal.

    appAPI.openURL({
      url: href,
      where: "window",
      focus: false
    });
    

    [Disclosure: I am a Crossrider employee]