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

I believe it's just the fact he has no e.preventDefault() or onclick="return false;" for the old school guys on the link action. In thish case, the browser is simply looking for a named anchor that doesn't exist, so it jumps to top.


You know, those two are not incompatible. He might have left out the preventDefault() call on purpose.




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

Search: