beautypg.com

Dom.getview(), Dom.getwindowtitle(), Dom.setview() – Adobe Dreamweaver API Reference CS5 User Manual

Page 183

background image

178

DREAMWEAVER API REFERENCE

Workspace

Last updated 8/27/2013

Returns
One of the following strings:

The

"head"

string if the

HEAD

area is active

The

"body"

string if the

BODY

or

NOFRAMES

area is active

The

"frameset"

string if a frameset or any of its frames is selected

The

"none"

string if the focus is not in the document (for example, if it’s in the Property inspector or another

floating panel)

dom.getView()

Availability
Dreamweaver 4, updated in CS4.

Description
This function determines which view is visible.

Arguments
None.

Returns

design

,

code

,

split

, or "

split code

" depending on the visible view.

dom.getWindowTitle()

Availability
Dreamweaver 3.

Description
This function gets the title of the window that contains the document.

Arguments
None.

Returns
A string that contains the text that appears between the

TITLE

tags in the document, or nothing, if the document is not

in an open window.

dom.setView()

Availability
Dreamweaver 4; updated in CS4.

Description
This function shows or hides the Design or Code view to produce a design-only, code-only, or split view.