Property

[Method]

Event

 

 

DeleteDOM

Returns and deletes the IHTMLDocument2 returned by the CreateDOM method.

Syntax

    HRESULT DeleteDOM(
    );

Return Values

0

Success (default)

1

Failure

Remarks

    Call DeleteDOM to return the object that was returned and used with the CreateDOM method to Web Editor Control.

Sample Codes

VBScript

dim object
set object = Document.editForm
set doc = object.wec.CreatDOM
set allCol = object.idom.all

MsgBox doc.title
doc.title = "This is Title"

For i = 0 to allCol.length-1
  MsgBox allCol(i).innerHTML
next

object.wec.DeleteDOM

See Also

CreateDOM