Window Functions - MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference

Dreamweaver api reference
Table of Contents

Advertisement

Example
The following example checks to see if the toolbar myEditbar is visible in the document
window; if it is not visible, it sets myEditbar to be visible:
var dom = dw.getDocumentDOM();
if(dom != null && dom.getToolbarVisibility("myEditbar") == false)
{
dom.setToolbarVisibility("myEditbar", true);
{

Window functions

Window functions handle operations that are related to the document window and the
floating panels. The window functions show and hide floating panels, determine which part
of the Document window has focus, and set the active document. For operations that are
related specifically to the Site panel, see
Some of the functions in this section operate only on Windows. The description of a
function indicates whether this is the case.
dom.getFocus()
Availability
Dreamweaver 3.
Description
This function determines the part of the document that is currently in focus.
Arguments
None.
Returns
One of the following strings:
The
string if the
"head"
The
string if the
"body"
The
"frameset"
The
string if the focus is not in the document (for example, if it's in the Property
"none"
inspector or another floating panel)
"Site functions" on page
area is active
HEAD
or
BODY
NOFRAMES
string if a frameset or any of its frames is selected
256.
area is active
Window functions
229

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

This manual is also suitable for:

Dreamweaver 8

Table of Contents