I also need to open a link in a new window.
Using the element’s:
element.target=“_blank”;
would seem to be the answer for a button or image or other element.
I am using dynamically created links based upon a client clicking the email column in a table. I can use:
wixLocation.to(“mailto:” + customerEmail+ “?subject=Responding to your purchase order…”);
This works great. It opens the email client, pre-filled with email address and subject, but in the same window. This forces the client to reload the database (and password screens) after sending the email.
Can I set the target property of wixLocation somehow to “_blank”?