In the above example, when a page starts to load, the onbeginload trigger changes the caption to "Loading...". After the page is loaded, the onload trigger executes two functions. The first changes the caption to display the URL of the loaded page and the second changes the icon.