Latest web development tutorials
 

HTML DOM Del Object


Del Object

The Del object represents an HTML <del> element.

Access a Del Object

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

Example

var x = document.getElementById("myDel");
Try it Yourself »

Create a Del Object

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

Example

var x = document.createElement("DEL");
Try it Yourself »

Del Object Properties

Property Description
cite Sets or returns the value of the cite attribute of a deleted text
dateTime Sets or returns the value of the datetime attribute of a deleted text

Standard Properties and Events

The Del object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML Text Formatting

HTML reference: HTML <del> tag

JavaScript reference: HTML DOM ins Object