Click to return to the DHTML, HTML     
DEFER Attribute | defer P...     dialogArguments Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

designMode Property


Sets or retrieves whether the document can be edited.

Syntax

HTMLN/A
Scriptingdocument.designMode [ = sMode ]

Possible Values

sMode String that specifies one of the following values:
On Document can be edited.
Off | Inherit Document cannot be edited.

The property is read/write with a default value of Inherit.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Remarks

You can use the designMode property to put Internet Explorer into a mode where you can edit the current document.

While the browser is in design mode, objects enter a UI-activated state when the user presses the ENTER key or clicks an object that has focus, or when the user double-clicks the object. Objects that are UI activated have their own window within the document. You can modify the UI only when the object is in a UI-activated state.

You cannot execute script when the value of the designMode property is set to On.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
document

See Also

MSHTML Editing



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.