Create an Ins Element - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Ins


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

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>

<button onclick="myFunction()">create an INS element</button>

function myFunction() {//from w  w  w .  j a v a 2 s .  com
    var x = document.createElement("INS");
    var t = document.createTextNode("Some inserted text");


Related Tutorials