Specifications
Chapter 31422
dreamweaver.canRevertDocument()
Availability
Dreamweaver 3
Description
Checks whether Dreamweaver can perform a Revert (to the last-saved version) operation.
Arguments
documentObject
documentObject
is the object at the root of a document’s DOM tree (the value that
dreamweaver.getDocumentDOM() returns).
Returns
A Boolean value that indicates whether the document is in an unsaved state and a saved version of
the document exists on a local drive.
dreamweaver.canSaveAll()
Availability
Dreamweaver 3
Description
Checks whether Dreamweaver can perform a Save All operation.
Arguments
None.
Returns
A Boolean value that indicates whether one or more unsaved documents are open.
dreamweaver.canSaveDocument()
Availability
Dreamweaver 3
Description
Checks whether Dreamweaver can perform a Save operation on the specified document.
Arguments
documentObject
documentObject
is the root of a document’s DOM (the same value that
dreamweaver.getDocumentDOM() returns).
Returns
A Boolean value that indicates whether the document has any unsaved changes.