4 ms·
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 s
by jqueryin 14y ago
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.
- koide 14y agoYou know, those two are not incompatible. He might have left out the preventDefault() call on purpose.