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

For most tags you can also put the event handlers as first children inside the element, but self-closing tags like <input> don't support that. I'm now putting the event handlers always outside (as next siblings) for consistency.


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

Search: