Adobe 38040334 API Reference - Page 343
dom.resetAllElementViews
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 343 highlights
DREAMWEAVER CS3 338 API Reference 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. 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.