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 Abbreviation object supports the standard properties and events.

Post Author: Zahid Farid