User Guide
460 Design
Returns
A Boolean value; if true, borders are displayed; if false, borders are not displayed.
Example
The following example checks whether the block borders visual aid is on and, if not, turns it
on:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.getShowBlockBorders(false) == false){
currentDOM.setShowBlockBorders(true);
}
dom.getShowBlockIDs()
Availability
Dreamweaver 8.
Description
This function gets the state of the visual aid that displays ID and class information for all
blocks or divs.
Arguments
allblocks
■ The allblocks argument, which is required, is a Boolean. Set the value to true to display
ID and class for div tags only. Set the value to
false to display the ID and class for all
block elements.
Returns
A Boolean: If true, IDs are displayed; if false IDs are not displayed.
Example
The following example checks whether the block IDs are displayed and, if not, displays them:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.getShowBlockIDs(false) == false){
currentDOM.setShowBlockIDs(true);
}
000_DW_API_Print.book Page 460 Wednesday, July 20, 2005 11:58 AM