Specifications
637
Toolbar functions
The following JavaScript functions let you get and set the visibility of toolbars and toolbar labels,
obtain the labels of toolbar items in the current window, position toolbars, and obtain toolbar
IDs. For more information on creating or modifying toolbars, see “To o lb a r s” on page 77.
dom.getToolbarVisibility()
Availability
Dreamweaver MX
Description
Returns a Boolean value that indicates whether the toolbar that is specified by toolbar_id is
visible in the document window or the Dreamweaver MX workspace frame. If the toolbar is
docked to the Dreamweaver MX workspace frame, this function affects that toolbar, regardless of
the DOM on which it is called. If the toolbar is docked to individual document windows, the
function affects the toolbar in the given document.
Arguments
toolbar_id is the ID string that is assigned to the toolbar.
Returns
true if the toolbar is visible in the front document window or the Dreamweaver MX workspace
frame;
false if the toolbar is not visible or does not exist.
Example
var retval = dom.getToolbarVisibility("myEditbar");
return retval;
dom.setToolbarVisibility()
Availability
Dreamweaver MX
Description
Shows or hides the specified toolbar. If the toolbar is docked to the Dreamweaver MX workspace
frame because the container attribute is set to mainframe, this function affects that toolbar,
regardless of the DOM on which it is called. If the toolbar is docked to individual document
windows, the function affects the toolbar in the given document.
Arguments
toolbar_id, bShow
• toolbar_id is the ID of the toolbar, the value of the ID attribute on the toolbar tag in the
toolbars.xml file.
• bShow is a Boolean value that indicates whether to show or hide the toolbar. If bshow is true,
dom.setToolbarVisibility() makes the toolbar visible. If bShow is false,
dom.setToolbarVisibility() makes the toolbar invisible.
Returns
Nothing.