Home Features Toolbar Library Forum Download Support Tutorial Manual
3. Reference
Triggers
OnBeginLoad
OnLoad
OnChange
OnActivate
OnSelect
OnFocus
OnKillFocus
OnRank
OnSave
Controls
Variables
System Variables
Global Values
Functions
Text Functions
  

OnActivate Trigger

The onactivate trigger is fired when a toolbar is activated.


Syntax:

    onactivate="Function(); Function2(); ..."


Remarks:

  • A toolbar is activated whenever a toolbar is created. This includes opening a new browser window, switching toolbars or when the Toolbar Browser bar is enabled from the IE toolbar menu.
  • Activating or maximizing an existing browser window will not fire the trigger.
  • OnActivate Trigger does not fire if the Toolbar Browser is hidden.
  • The trigger can be used to execute one or more functions.


Example:

    <xml id="toolbar">
    <control type="toolbar">
    <toolbar caption="OnActivate Example">
    <button
      caption="Idle"
      onactivate="SetCaption(this,'Hello World');">

    </button>
    </control>
    </toolbar>
    </xml>


    In the above example, when a toolbar is activated, the button caption is set to "Hello World".


Website Popularity Rank | Build Your Own Toolbar | Free Download | Custom Toolbars | Features | Contact Us

ToolbarBrowser is a freeware project supported by Trellian Limited. | Privacy Policy