10 out of 13 rated this helpful Rate this topic

designMode Property

.NET Framework 3.0

Sets or gets a value that indicates whether the document can be edited.

Syntax

[ sMode = ] object.designMode

Possible Values

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

The property is read/write. The property has a default value of Off | Inherit.

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are supported in IE7 Standards mode and IE5 (Quirks) mode only. For more information, see About Dynamic Properties and Defining Document Compatibility.

Remarks

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

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

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

Standards Information

There is no public standard that applies to this property.

Applies To

document, HTMLDocument Constructor

See Also

Introduction to MSHTML Editing
Did you find this helpful?
(2000 characters remaining)
Community Content Add
Annotations FAQ