|
OnBeginLoad TriggerThe onbeginload trigger is activated when a new page is about to be loaded. Syntax:onbeginload="Function(); Function2(); ..." Remarks:
Example: <xml id="toolbar"> <toolbar caption="OnBeginLoad Example"> <control type="toolbar"> <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. |