dom.getShowBlockBorders()

Availability

Dreamweaver 8.

Description

This function gets the state of the visual aid that draws borders for all blocks or all divs.

Arguments

allblocks

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);
   }

 

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

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