How can I edit the following code to make the link open in a new tab?
$w.onReady(function() {
$w('#button').onClick(()=>{
wixLocation.to("https://google.com");
})
})
How can I edit the following code to make the link open in a new tab?
$w.onReady(function() {
$w('#button').onClick(()=>{
wixLocation.to("https://google.com");
})
})
Not possible with wixLocation, the option does not exist.
but since you are using a button you are better of, setting the target location of the button to _blank and set the link property as well
If this is still not possible, can we please have an option to up-vote for this as a new development?
This is something I need!
Thanks