User Guide
424 Design
dom.removeCSSStyle()
Availability
Dreamweaver 3.
Description
Removes the CLASS or ID attribute from the specified element, or removes the SPAN tag that
completely surrounds the specified element. This function is valid only for the active
document.
Arguments
elementNode, {classOrID}
■ The elementNode argument is an element node in the DOM. If the elementNode
argument is specified as an empty string (" "), the function acts on the current selection.
■ The classOrID argument, which is optional, is the attribute that should be removed
(either
"class" or "id"). If the classOrID argument is not specified, it defaults to
"class". If no CLASS attribute is defined for the elementNode argument, the SPAN tag
that surrounds the
elementNode argument is removed.
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 forceRefresh argument, which is optional, is a Boolean value that specifies whether
to refresh the rendering of the entire document when there is no internal CSS to remove.
A value of
true causes the refresh. The default value is false.
Returns
Nothing.
000_DW_API_Print.book Page 424 Wednesday, July 20, 2005 11:58 AM