I have some links and when you click on them it navigates to: foo.com/about.php#about2 andfoo.com/about.php#about1
How can I get the #about1 or about2 in Javascript, so if it is #about1 display the content relative to that div, and if it is #about2 display that?
Thanks for your help.