Obitun DOM na Del

  • 上一页
  • 下一页

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

属性 Description
cite A set or return the value of the cite attribute of the deleted text.
dateTime 设置或者返回被删除文本的 datetime 属性值。

标准属性和事件

Del 对象支持标准属性事件

相关页面

HTML 教程:HTML 文本格式化

HTML 参考手册:HTML 标签

JavaScript 参考手册:HTML DOM ins 对象

  • 上一页
  • 下一页