<a href="http://website.com" data-toggle="modal" data-target="#mymodal">go to</a>

Opening the modal works fine but the link is not opened.
I would like the modal to open before the link is opened.
The content of the modal should offer the option to proceed opening the link or to cancel and close the modal.

I've tried some javascript but given the fact that I did not succeed in getting it to work, I could use some help.

Thanks for any suggestion