I scrolled back to Acorn's post #17 - there is an excellent explanation with a demo on how the function can work on-page and off-page.

An alternative to using a trigger to bring the top-of-page...