JavaScript is a powerful tool to build a framework efficiently. We sometimes need a popup alert on a link before it goes to another page or URL.
Popup Alert
<script type="text/javascript">
function confirm_alert(node) {
return confirm("Are you sure to continue?");
}
</script>
<a href="https://8subjects.com" onclick="return confirm_alert(this);">Click Here</a>