How do I prevent jumping back to the top but also ensure visiting to the clicked link?

Viewed 21

So I'm having this piece of html code, it will allow the user to open their email application and write an email to the target email address. But at the same time, it will also make the page scroll back up to the top. So my question is: how do I prevent from jumping back to the top but also make sure the link works because I can find a lot of answers on Stackoverflow about how to not jump back to top, but none of these answers say anything about preventing jumping while also ensuring visiting the clicked link. Please, somebody help!

<a href="mailto:example@gmail.com">tiomsity@gmail.com</a>

Thank you!

0 Answers
Related