|
OnChange TriggerThe onchange trigger is activated when the value of a contrl has changed. Syntax:onchage="Function(); Function2(); ..." Remarks: The trigger can be used to execute one or more functions, or open a URL. Example: <xml id="toolbar"> <toolbar caption="OnChange Example"> <control type="toolbar"> <button caption="Button1" id=button1 action="SetValue(button2,23)"></button> <button caption="Button2" id=button2 onchange="SetIcon(this,'http://www.toolbrbrowser.com/img/smiley.ico'"> </button> </control> </toolbar> </xml> In the above example, clicking Button1 causes a value of 23 to be assigned to Button2. When the value changes, the onchange trigger is executed to change the button icon. |