Button with two functions

I need a Button with two functions.
The first is to open the lightbox and the second to open a new tab(with link).
In the button settings I can only adjust one function.

Someone a idea?

Hi Martin ,

What you can do is to link the button by code then inside the onClick → open the lightbox. So, your code should look something like this :

$w.onReady(function () {
 
    $w("#button").link = "http://www.wix.com";// Ling the button 
    $w("#button").target = "_blank";// open in new tab 
 
  $w("#button").onClick(()=>{
    wixWindow.openLightbox("lightbox");
  });

});

Hope this helps!
Best,

Mustafa