Click event count on page using jquery
$ ( document ). click ( function ( e ) { if ( e . currentTarget . activeElement . attributes [ 0 ]) { var idClicked = e . currentTarget . activeElement . attributes [ 0 ]. value ; } if ( e . currentTarget . activeElement . attributes [ 1 ]) { var idClicked1 = e . currentTarget . activeElement . attributes [ 1 ]. value ; } if ( idClicked == 'loginbutton' || idClicked1 == 'loginModal' || idClicked1 == 'close' ) { } else { var auth_token ...