Two links in one button

I would like to put two links on the same button.
A specific URL, and one from the database. How are you doing :

$w.onReady(function () {
 
    $w("#button1").link = "https://www.wix.com/";
 //A database link
});

Hello,

It doesn’t seem possible with the currently available APIs in Corvid. However, you can always try creating your button with the HTML element and add your code there.

I found a few helpful posts in stackoverflow that may help you out.

You might then be able to pass data from your site to the iFrame using the htmlComponent.postMessage API. I recommend reading through this article to learn more.

Hope this helps!

Best regards,

thank you very much Miguel