HTML DOMInsオブジェクト
Insオブジェクト
Insオブジェクトは、HTMLの<ins>要素を表します。
Insオブジェクトにアクセスする
getElementById()を使用して、<ins>要素にアクセスできます。
例
var x = document.getElementById("myIns");
Insオブジェクトを作成する
document.createElement()メソッドを使用して、<ins>要素を作成できます。
例
var x = document.createElement("INS");
Insオブジェクトのプロパティ
Property | Description |
---|---|
cite | Sets or returns the value of the cite attribute of an inserted text |
dateTime | Sets or returns the value of the datetime attribute of an inserted text |
標準のプロパティとイベント
Insオブジェクトは、標準のプロパティとイベントもサポートしています。
関連ページ
HTMLチュートリアル:HTMLテキストフォーマット
HTMLリファレンス:HTML <ins>タグ
JavaScriptリファレンス:HTML DOM del Object