dreamweaver.getNewDocumentDOM()

Availability

Dreamweaver MX; added documentType argument in Dreamweaver 8.

Description

Provides access to the editable tree for a new, empty document. This function works in the same way as the getDocumetDOM() function, except that it points to a new document, not an existing one, and does not open the document.

Arguments

{documentType}

Returns

A pointer to a new, empty document.

Example

The following code returns the DOM for a new, empty document:

var theDOM = dreamweaver.getNewDocumentDOM();


 

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

Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/14_doc23.htm