|
OnLoad TriggerThe onload trigger is activated when a new page is loaded in the browser. Syntax:onload="Function(); Function2(); ..." onload="http://www.somedomain.com" Remarks:
Example: <xml id="toolbar"> <control type="toolbar"> <toolbar caption="OnLoad Example"> <button
onload="SetCaption(this,'Loaded %URL%'); SetIcon(this,'http://www.toolbarbrowser.com/img/smiley.io')" onbeginload="SetCaption(this,'Loading...')"> </button> </control> </toolbar> </xml> 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. |