Prevent onclick from firing

by robcampo

HTML

<a onclick="window.open('https://cylon.orbiscom.com/online/Wallet/ForgotPassword','_system'); return false;')" href="https://cylon.orbiscom.com/online/Wallet/ForgotPassword">Forgot Password?</a>

JavaScript

$(function() {
    $("a").each(function(){
        console.log("found a: ", this);
        
        $(this).click(function(e) {
            console.log("a clicked: ", this);
            
            e.stopImmediatePropagation();    		
            e.preventDefault();
            e.stopPropagation();
            return false;	
        });
    });
});