Make webviewer not link out to anything

I have the following html code used as the source in a webviewer and I want to get the value of the link when a coin is clicked but not have the webviewer change links. I want it to stay the same .html file

What is the html code you’re using?

[it was not originally in the first post]