I followed this post and it works fine:
How can i make a link do some jquery then go to destination
How can i add the equivalent to target=”_blank”?
I want the destination page to open in a new tab
You can use window.open
ike this:
window.open('url/to/page', '_blank');