QUESTION:
IS IT POSSIBLE to execute BOTH of these actions at the same time:
openLightbox in CURRENT window + open external URL in a NEW window?
PRODUCT
I’m on WiX EDITOR
MY GOAL
Click button ==> lightbox opens in current win + Open external URL in a new window
ALSO
IF IT IS DETERMINED that this cannot be done: does anyone have a creative workaround for this (which is WHY we want to do this):
I want the lightbox to be open in the ORIG window for when they return to it, on the off chance that the visitor will be willing to answer 1 question about their experience at the external site they were sent to in the NEW window. Hope that makes sense.
I HAVE TRIED a few things, as follows… and all I can get it to do is open the lightbox
// FYI
// the lightbox NAME = exit-survey
// the button ID = buttDealsShop
THIS
import wixWindow from “wix-window”;
export function buttDealsShop_click(event) {
wixWindow.openLightbox (“exit-survey”);
$w(“#buttDealsShop”).link = “http://ExternalURLAddress”;
$w(“#buttDealsShop”).target = “_blank”;
AND
import wixLocationFrontend from ‘wix-location-frontend’;
import wixWindowFrontend from ‘wix-window-frontend’;$w.onReady(function () {
$w(“#buttDealsShop”).onClick(function () {wixWindowFrontend.openLightbox(‘exit-survey’);
wixLocationFrontend.to(“https://ExternalURLAddress”, “_blank”);
});
});
AND One other approach that I lost track of.
LASTLY
I tried switching the events:
lightbox THEN window, AND
open window, THEN lightbox – to no success.
WHAT DO YOU THINK OF THIS:
Maybe I can move the open external URL in new window event to the lightbox → when it opens, then open the URL in a new window.
THANK YOU!