HTML DOMDelオブジェクト
デルオブジェクト
Delオブジェクトは、HTMLの<del>要素を表します。
Delオブジェクトにアクセスする
getElementById()を使用して、<del>要素にアクセスできます。
例
var x = document.getElementById("myDel");
Delオブジェクトを作成する
document.createElement()メソッドを使用して、<del>要素を作成できます。
例
var x = document.createElement("DEL");
Delオブジェクトのプロパティ
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 |
標準のプロパティとイベント
Delオブジェクトは、標準のプロパティとイベントもサポートします。
関連ページ
HTMLチュートリアル:HTMLテキストフォーマット
HTMLリファレンス:HTML <del>タグ
JavaScriptリファレンス:HTML DOMinsオブジェクト