Say I've loaded some arbitrary HTML page into my browser. Then into the address bar I append "#anchor-name" and hit enter.
Since I only added an anchor and didn't call a different page, the browser does not make another call to the server. So there is no onLoad event, etc.
Nonetheless, could some Javascript on the page detect this action? How? What's the event?
I think the answer is "no." Please prove me wrong.
Thanks
Note: Please assume there is no query string in the URL. It ends with "/index.html" or "/".
Related question: does it matter if an anchor named "anchor-name" actually exists on the page?