User Guide
306 Document
dreamweaver.browseForFolderURL()
Availability
Dreamweaver 3.
Description
Opens the Choose Folder dialog box with the specified label in the title bar.
Arguments
{titleBarLabel}, {directoryToStartIn}
■ The titleBarLabel argument is the label that should appear in the title bar of the dialog
box. If it is omitted, the
titleBarLabel argument defaults to Choose Folder.
■ The directoryToStartIn argument is the path where the folder should open, which is
expressed as a file:// URL.
Returns
A string that contains the name of the folder, which is expressed as a file:// URL.
Example
The following code returns the URL of a folder:
return dreamweaver.browseForFolderURL('Select a Folder', ¬
dreamweaver.getSiteRoot());
dreamweaver.closeDocument()
Availability
Dreamweaver 2.
Description
Closes the specified document.
Arguments
documentObject
■ The documentObject argument is the object at the root of a document’s DOM tree (the
value that the
dreamweaver.getDocumentDOM() function returns). If the
documentObject argument refers to the active document, the Document window might
not close until the script that calls this function finishes executing.
Returns
Nothing.
000_DW_API_Print.book Page 306 Wednesday, July 20, 2005 11:58 AM