OptionalonafterprintOptionalonbeforeprintScript to be run before the document is printed
OptionalonbeforeunloadScript to be run when the document is about to be unloaded
OptionalonerrorScript to be run when an error occurs
OptionalonhashchangeScript to be run when there has been changes to the anchor part of the a URL
OptionalonloadFires after the page is finished loading
OptionalonmessageScript to be run when the message is triggered
OptionalonofflineScript to be run when the browser starts to work offline
OptionalononlineScript to be run when the browser starts to work online
OptionalonpagehideScript to be run when a user navigates away from a page
OptionalonpageshowScript to be run when a user navigates to a page
OptionalonpopstateScript to be run when the window's history changes
OptionalonresizeFires when the browser window is resized
OptionalonstorageScript to be run when a Web Storage area is updated
OptionalonunloadFires once a page has unloaded (or the browser window has been closed)
Script to be run after the document is printed