Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

innerHTML can set event handlers so you don't have to assign them separately. And if you re-create dom fragment with innerHTML you can reattach children that didn't change and their handlers are preserved.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: