Get dropdown element to open URL in new window

Hello Toby,

this little example should help you to solve your problem…(EXAMPLE-3)

https://russian-dima.wixsite.com/meinewebsite/website-navigation

export function dropdown3_change(event) {
 let url = $w("#dropdown3").value;
    $w("#button3").link = url
    $w("#button3").target = "_blank";
 }

export function button3_click(event) {
    console.log($w("#button3").link)
}

I should also note that I originally tried to use wix-location, but as far as I can tell it doesn’t allow links to be opened in a new window.
And YES —> wixLocation does NOT support targetting in new window (tab)

Here you have a little proof for it…

This is because you can’t simulate a click with Corvid and you can’t make target _blank with wixLocation.