<style>
a {
cursor: pointer;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(function() {
$("a").each(function(index, element) {
var href = $(this).attr("href");
$(this).attr("hiddenhref", href);
$(this).removeAttr("href");
});
$(" a").click(function() {
url = $(this).attr("hiddenhref");
// window.open(url);
window.location.href = url;
});
});
</script>