i am quite new to addEventListener method.i am trying to pass argument to function using addEventListener .but it is not worining.why i can\'t passing the string \"2a\" usin
Only way to do that is to use an anonymous function
function lister(){ document.getElementById("tab1").addEventListener("click", function() { myfunc("2a"); }, false); }