User Guide

204 Chapter 12: Workspace
else{
dom.removeFontMarkupAsStyle('font-size');
}
}
dom.getToolbarLabel()
Availability
Dreamweaver MX.
Description
This function obtains the label of the specified toolbar. You can use dom.getToolbarLabel() for
menus that show or hide toolbars.
Arguments
toolbar_id
The toolbar_id argument is the ID of the toolbar, which is the value of the ID attribute on
the toolbar tag in the toolbars.xml file.
Returns
The label name string that is assigned as an attribute on the toolbar tag.
Example
The following example stores the label for myEditbar in the variable label:
var label = dom.getToolbarLabel("myEditbar");
dom.getToolbarVisibility()
Availability
Dreamweaver MX.
Description
This function returns a Boolean value that indicates whether the toolbar that is specified by
toolbar_id is visible.
Arguments
toolbar_id
The toolbar_id argument is the ID string that is assigned to the toolbar.
Returns
A Boolean value: true if the toolbar is visible, false if the toolbar is not visible or does not exist.
Example
The following example checks whether the toolbar myEditbar is visible in the document window,
and then stores that value in the
retval variable:
var retval = dom.getToolbarVisibility("myEditbar");
return retval;
000_DW_API_Print.book Page 204 Wednesday, August 20, 2003 9:14 AM