THE INDIA LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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():

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

Create a Del Object

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

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

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