I've seen this on a lot of websites, but I can't figure out exactly how to do it:
When a function is executed, the URL changes to whatever.com/page/#something and then when that url is accessed, the function is executed again. I know how to make that work when the page is first loaded, but I can't figure out how to make the function occur again when the "back" button is pressed.
(e.g. if I have a tabbed system set up, I start on site.com/#tab1, go to site.com/#tab2, and click the back button so that tab 1 shows up on the page again)
How does that work?