Mouse right click on Firefox triggers click event
问题 I noticed that the mouse right click on Firefox triggers an addEventListener. I tried this code on more browsers and more OS (IE 11-10-9, Safari, Chrome) and by pressing the mouse right click, only on Firefox the console.log message is always printed. <div id="one-div" style="height:400px;width:500px;background-color:#000;"> click me </div> <script> function cb(event, from){ // if click is fired on <div> with: // left click, both EventListener will be printed. // right click, only the