Добавить 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