Hacker News new | past | comments | ask | show | jobs | submit login

> What is the actual use of grabbing an element that has an ID that matches the URL hash

Well normally when you load such a page the browser will scroll down to that element. Perhaps this JavaScript wants to do something like highlight the section or extract the heading to send to some analytics?




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

Search: