A button has a link which can be set to open in a new window/tab. I also want to send a tracking event so I add an onClick() to do it, and that works but then the link no longer works. I’m sure there was a time when I could have both, but ok … there is documentation saying I shouldn’t have a link and an onclick handler so I won’t do that.
There is also documentation saying I can use wix-location.to() in the handler instead of the button’s regular link function. That does work, but it won’t open in a new tab, as noted in other discussions in this forum.
How can I open a button’s link in a new tab and also send a tracking event?
FYI I noticed wix-window.openModal(). That works but not the UX I want. I need something like javascript’s window.open() … is there a way I can call that from Corvid?