HTML DOM Del Object

Del Object

The Del object represents the HTML <del> element.

Access Del Object

You can access the <del> element by using getElementById():

var x = document.getElementById("myDel");

Try it yourself

Create Del Object

You can create a <del> element by using the document.createElement() method:

var x = document.createElement("DEL");

Try it yourself

Del Object Properties

Properties Description
cite Set or return the cite attribute value of the deleted text.
dateTime Sets or returns the datetime attribute value of the deleted text.

Standard Properties and Events

Del Object Supports StandardsPropertiesAndEvents.

Related Pages

HTML Tutorial:HTML Text Formatting

HTML Reference Manual:HTML <del> Tag

JavaScript Reference Manual:HTML DOM ins Object