Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

prevent js event firing multiple times

button.addEventListener(
      "click",fxn,
      { once: true }
    )
Source by try2explore.com #
 
PREVIOUS NEXT
Tagged: #prevent #js #event #firing #multiple #times
ADD COMMENT
Topic
Name
2+4 =