const elem = document . querySelector ( '.click' ) ; function handleClick ( this , event ) { event . preventDefault ( ) ; console . log ( this . className ) ; } elem . addEventListener ( 'click' , handleClick , false ) ;