The onLoad event handler is fired when the page has finished loading.The onLoad event handler in the of a document fires before the event handler in the tag.