I've written a script for a custom button to be added under my product page. However, I want the whatsapp url to be open in a new window upon clicking on the button.
Below is the script I've written:
$("<a class='whatsappbtn' href='https://api.whatsapp.com/send?phone=6588747658'> Whatsapp Us! </a>").insertAfter(".sqs-add-to-cart-button-wrapper");
Hope to get some help, thank you!