myfunction with param on addeventlistner

Solutions on MaxInterview for myfunction with param on addeventlistner by the best coders in the world

showing results for - "myfunction with param on addeventlistner"
Enrico
23 Mar 2017
1var someVar = 32;//Sample value 
2var someEle = document.getElementById("someID");//Sample Element
3someEle.addEventListener("click", function(){
4   myFunction(someVar);// <- There use your function with param in brackets
5}, false);