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);