dom.getShowBlockBackgrounds()

Availability

Dreamweaver 8.

Description

This function gets the state of the visual aid that forces background coloring for all blocks or divs.

Arguments

allblocks

Returns

A Boolean. If true, backgrounds are being forced; if false, backgrounds are not being forced.

Example

The following example checks whether the background coloring for all blocks is being forced, and if not, forces background coloring for all blocks.:

var currentDOM = dw.getDocumentDOM();
if (currentDOM.getShowBlockBackgrounds(false) == false){
   currentDOM.setShowBlockBackgrounds(false);
   }

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/17_des81.htm