Answers for "myFunction with param on addEventListner"

0

myFunction with param on addEventListner

var someVar = 32;//Sample value 
var someEle = document.getElementById("someID");//Sample Element
someEle.addEventListener("click", function(){
   myFunction(someVar);// <- There use your function with param in brackets
}, false);
Posted by: Guest on August-27-2021

Code answers related to "myFunction with param on addEventListner"

Code answers related to "Javascript"

Browse Popular Code Answers by Language