What's the best way to combine two strings
String 1:
<a href="javascript:myFunc();" onclick="alert('myFunc executed')">Click here</a>
and String 2:
<a href="http://google.com">click here</a>
so that:
myFunc() executed;
alert appears;
once alert is clicked, the page is being redirected to http://google.com
I'm asking about the most correct way to do that.
Thank you.