Adobe 38040334 - Dreamweaver CS3 User Manual page 316

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

elem.isBlockElement()
Availability
Dreamweaver CS3.
Description
Checks whether the element has an inherent or specified display value of
Arguments
None.
Returns
A Boolean value indicating whether the object is a block-level element.
Example
[...]
var DOM = dw.getDocumentDOM();
var blocks = DOM.body.getBlockElements();
var next = null;
for (var i=0; i < blocks.length; i++){
// next is the node right after blocks[i]
next = blocks[i].nextSibling;
// if next isn't null AND next is an element node AND next is a block element,
// we've met the "second of two consecutive block elements" test.
if (next && (next.nodeType == 1) && next.isBlockElement()){
// do something
}
}
[...]
elem.isInlineElement()
Availability
Dreamweaver CS3.
Description
Checks whether the element has an inherent or specified display value of
Arguments
None.
Returns
A Boolean value indicating whether the object is an inline element.
.
'block'
.
'inline'
DREAMWEAVER CS3
311
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents