1document.getElementById("main_btn").addEventListener("click", function (){
2 hideId("main");
3});
4//dont call the function directly, use function that calls it
1var someEventHander=function(event,param1,param2){
2 console.log(event,param1,param2);
3}
4//add listener
5document.getElementById("someid").addEventListener('click',someEventHander.bind(event,'param1','param2'), false);