Dynamicznie dodać OnClick JavaScript
elem.addEventListener("click", func, false); //where func is your function name
Weary Wren
elem.addEventListener("click", func, false); //where func is your function name
elem.addEventListener("click", func, false); //where func is your function name