jQuery kullanarak yapmak istersen.
<a id="testBtn" style="color: blue; cursor: pointer;">Click Here</a>
<!-- Eğer sayfada jquery kütüphanesi yüklü değilse -->
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
$(function(){
$(document.body).on("click", "#testBtn", function(){
window.open('https://google.com', 'Pencere Başlığı');
window.location.href = "gidecekurl.php";
})
})Bu şekilde çalışır.