html - Firefox, 2 clicks generated for a double click -
in page have button onclick event,
<input type="button" onclick="openproductdetails();" value="show product info" />
on firefox, when double click button, design problem.
it's executed twice onclick event.
this problem doesn't occur on ie.
i didn't find how stop firing double click on firefox.
you haven't provided code examples? how can possibly without seeing how you've written function. debugging in blind!
try adding on click event preventdefault function. assuming you're using jquery??
$("#button").on('click', function(e)) { e.preventdefault(); // }
if not vanilla solution.
document.getelementbyid('button').addeventlistener('click', function(e){ e.preventdefault(); // });
Comments
Post a Comment