command="script"
This attribute is required for all items except menu buttons. Adobe Dreamweaver ignores the command attribute for menu buttons. Specifies the JavaScript function to execute when the user performs one of the following actions:
- Clicks a button
- Selects an item from a pop-up menu or combo box
- Tabs out of, presses Return in, or clicks away from a text box or combo box
- Selects a color from a color picker
The command attribute is equivalent to the receiveArguments() function in a toolbar command file.
Example
command="dw.toggleLiveDebug()"