Hacker News new | ask | show | jobs
by Guest9812398 2815 days ago
Oh, my mistake, it's been a while since I wrote the code. I use it to style the linked comment. So, the browser automatically scrolls to the appropriate location, and then jQuery adds a style to that comment so the user can easily locate it, or refind it if they scroll up and down the page.
1 comments

In modern browsers, you can sometimes achieve this effect with `:target`. (https://developer.mozilla.org/en-US/docs/Web/CSS/:target)