User Guide

Enablers 455
dreamweaver.snippetpalette.canInsert()
Availability
Dreamweaver MX.
Description
Checks whether you can insert or apply the selected element and returns either a true or false
value so you can enable or disable menu items for inserting or applying.
Arguments
None.
Returns
A Boolean value: true if you can insert or apply the selected element; false otherwise.
site.browseDocument()
Availability
Dreamweaver 4.
Description
Opens all selected documents in a browser window. It is the same as using the Preview in Browser
command.
Arguments
browserName
The browserName argument is the name of a browser as defined in the Preview in Browser
preferences. If omitted, this argument defaults to the user’s primary browser.
Returns
Nothing.
site.canAddLink()
Availability
Dreamweaver 3.
Description
Checks whether Dreamweaver can perform an Add Link to [Existing File | New File] operation.
Arguments
None.
Returns
A Boolean value: true if the selected document in the site map is an HTML file;
false otherwise.
000_DW_API_Print.book Page 455 Wednesday, August 20, 2003 9:14 AM