Adobe 38040334 - Dreamweaver CS3 User Manual page 343

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

Advertisement

Description
Removes the
or
attribute from the specified element, or removes the
CLASS
ID
the specified element. This function is valid only for the active document.
Arguments
elementNode, {classOrID}
• The
argument is an element node in the DOM. If the
elementNode
empty string (" "), the function acts on the current selection.
• The
argument, which is optional, is the attribute that should be removed (either
classOrID
the
argument is not specified, it defaults to
classOrID
argument, the
elementNode
Returns
Nothing.
dom.resetAllElementViews()
Availability
Dreamweaver 8.
Description
This function resets the Element view of all elements in the document to the original view by removing all internally
generated CSS.
Arguments
forceRefresh
• The
argument, which is optional, is a Boolean value that specifies whether to refresh the rendering
forceRefresh
of the entire document when there is no internal CSS to remove. A value of
value is
.
false
Returns
Nothing.
Example
The following example resets the Element view of all elements in the document without forcing a refresh of the
rendering:
var currentDOM = dw.getDocumentDOM();
currentDOM.resetAllElementViews(false);
dom.setElementView()
Availability
Dreamweaver 8.
"class"
tag that surrounds the
SPAN
tag that completely surrounds
SPAN
argument is specified as an
elementNode
. If no
attribute is defined for the
CLASS
argument is removed.
elementNode
causes the refresh. The default
true
DREAMWEAVER CS3
API Reference
or
). If
"class"
"id"
338

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents