Scroll to the top of a page when changing pages