This page has registers a function with dojo.addOnLoad(), dojo.addOnUnload() and dojo.addOnWindowUnload.
dojo.addOnLoad(): You should see 3 console messages about addOnLoad working.
dojo.addOnUnload(): You should see an alert if the page is reloaded, or if you navigate to a different web page ("addOnUnload works").
dojo.addOnWindowUnload(): You should see an alert if the page is reloaded, or if you navigate to a different web page ("addOnWindowUnload works").