KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Here's what I'm working with Code: <a href="#" onclick="window.onpopstate = function() { alert('pop'); }; return false; ">set up window.onpopstate </a><br> <a href="#somehash2">change hash</a> <div onclick="alert(location.href);">show location.href</div> Why does clicking the change hash link fire the popstate, shouldn't it only be fired if I click the change hash link then click back?
Tags (comma-separated)
Save Edits
Cancel