export function button44_click_1(event, $w) { $w("#button44").link = "http://www.google.com"; $w("#button44").target = "_blank"; //wixLocation.to("http://www.google.com");
}
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
The Button .link and .target properties should be set in the page's onReady() function and not in the button's event handler. Something like this:
$w.onReady(function () { $w("#button44").link = "http://www.google.com"; $w("#button44").target = "_blank"; });
Delete the onClick() function, and make sure it's cleared from the Button's onClick property in the Properties Panel: