Home Features Toolbar Library Forum Download Support Tutorial Manual
3. Reference
Triggers
Controls
Variables
System Variables
Global Values
Functions
AutoFill()
Back()
Beep()
CheckLinks()
Checksum()
Click()
Command()
Customize()
DeleteOption()
Enable()
Execute()
ExportLinks()
Forward()
GetFolderIcon()
GetQuery()
GetSystemIcon()
Header()
Highlight()
HistoryMenu()
Home()
IfExactMatch()
IfMatch()
ImportValue()
ImportCaption()
ImportIntValue()
ImportXMLValue()
Length()
LoadMenu()
Menu()
OpenURL()
Options()
PageText()
PlaySound()
PopupManager()
Refresh()
Replace()
ReplaceAll()
Resize()
ResizeClient()
Redraw()
Save()
Search()
SearchBack()
SearchLast()
SearchNext()
SearchPage()
SetCaption()
SetClipboard()
SetFocus()
SetFontSize()
SetIcon()
SetOption()
SetParam()
SetText()
SetStatusText()
SetTooltip()
SetUserAgent()
SetValue()
Show()
Stop()
StripHTML()
ToolbarMenu()
TruncateOption()
UpdateToolbar()
Zoom()
Text Functions
  

Command() Function

Executes the specified command.


Syntax:

    Command(id)
    Command(id1,id2,...) - Requires version 2.4.5 and higher


Parameters

    id - The id of a command to execute.


Remarks:

  • The Command() function executes the specified command from the <COMMANDS>... <COMMANDS> block in the toolbar XML code.
  • Each command should have a unique identifier.
  • From version 2.4.5 an above, multiple commands can be specified as a list of comma separated values. These are then executed in sequence.


Example:

    In the following example, clicking the Test button executes the command cmd1. This command is defined in the COMMANDS block, and causes the browser to navigate two pages back.


    <xml id="toolbar">
    <control type="toolbar">
    <button
      caption="Test"
      id="button1"
      action=Command(cmd1)">

    </button>
    </control>

    <COMMANDS>
    <COMMAND id="cmd1" action="Back(); Back();">
    <COMMANDS>

    </xml>



    Compatibility

      From version 2.4.5 onwards, multiple controls can be specified as a comma separated list.


    See Also

      COMMAND tag


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