Open a link in a new tab by clicking a widget

How to open a link in a new tab by clicking a widget in Wix blocks?

You can do this with a button:
image

Can also open the link programmatically the same way that would be done in Velo except it won’t open in a new window.

import wixLocation from 'wix-location';

$w.onReady(function () {
	$w('#button1').onClick(() => {
		wixLocation.to("https://google.com")
	})
	
});