function test(a,b) { return a+b; } someObj.addEventListener("click",function() { test(5,20); },false);