Javascript examples for DOM HTML Element:Ins
You can create an <ins> element by using the document.createElement() method:
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">create an INS element</button> <script> 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"); x.appendChild(t); document.body.appendChild(x); } </script> </body> </html>