We can create an <ins> element via the document.createElement()
method:
var x = document.createElement("INS");
Click the button to create an INS element.
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Test</button> <script> function myFunction() {//from www. j ava 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>