dom.getElementView()

Availability

Dreamweaver 8.

Description

This function gets the Element view for the currently selected element in the document. If the currently selected element is normal, the getElementView() function looks for the selected element's first ancestor that is either full or hidden.

Arguments

None.

Returns

A string that indicates the status of the selected element. Values include:

Example

The following example changes the status of the selected element to "full" if it is "hidden":

var currentDOM = dw.getDocumentDOM();
if (currentDOM && getElementView() == "hidden"){
   currentDOM.setElementView("full");
   }

 

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

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