Sets or gets a value that indicates whether the document can be edited.
HRESULT IHTMLDocument2::get_designMode(BSTR *p);HRESULT IHTMLDocument2::put_designMode(BSTR v);
- Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
- BSTR that specifies one of the values listed in Possible Values.
On Document can be edited. Off | Inherit Default. Document cannot be edited.
Returns S_OK if successful, or an error value otherwise.
You cannot execute script when the value of the IHTMLDocument2::designMode property is set to
You can use the IHTMLDocument2::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.