when a button click happens through the mouse, the event e usually has the mouse pointer location recorded. Try something like :
if(e.screenX && e.screenX != 0 && e.screenY && e.screenY != 0){
alert("real button click");
}
More Related Contents:
- Javascript – Dynamically assign onclick event in the loop
- Prevent onclick action with jQuery
- How can I stop an onclick event from firing for parent element when child is clicked?
- jQuery – How can I temporarily disable the onclick event listener after the event has been fired?
- How to open javascript menu with click & close with mouse out
- JavaScript: remove event listener
- What is the difference between the mouseover and mouseenter events?
- $(document).click() not working correctly on iPhone. jquery [duplicate]
- Javascript onclick function is called immediately (not when clicked)?
- Difference between “change” and “input” event for an `input` element
- Resize event for textarea?
- Onclick event not firing on jsfiddle.net [closed]
- Attach a body onload event with JS
- javascript onclick event over flash object
- Leaflet- marker click event works fine but methods of the class are undefined in the callback function
- Detecting when Iframe content has loaded (Cross browser)
- Changing the keypress
- Socket.io Client: respond to all events with one handler?
- jQuery prevent change for select
- adding event listener cross browser [closed]
- CSS Animation onClick
- Detect double tap on ipad or iphone screen using javascript
- javascript onclick happening on page load
- Monitor all JavaScript events in the browser console
- Capture event onclose browser
- Listen for changes with localStorage on the same window
- Angular2 – catch/subscribe to (click) event in dynamically added HTML
- How to track a Google Adwords conversion onclick?
- jquery keypress event object keyCode for firefox problem?
- One time event handling using promises?