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. enter image description here

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

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -