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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -