Hi everyone
I need a little help, I created a dropdown list that links to a external URL, but it opens in the same tab. How can I make the page open in a different tab?? Here’s my code:
import wixLocation from ‘wix-location’;
$w.onReady( function () {
$w(“#SelectState”).options = [
{“label”: “Alabama”, “value”: “https://myalabamataxes.alabama.gov/_/#1”},
{“label”: “What’s on second”, “value”: “second”},
{“label”: “I Don’t Know is on third”, “value”: “third”}
];
});
export function SelectState_change_1(event) {
let gotoUrl = $w(“#SelectState”).value;
wixLocation.to(gotoUrl);
}