Javascript examples for DOM HTML Element:Del
You can create a <del> element by using the document.createElement() method:
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">create a DEL element</button> <script> function myFunction() {//from w ww . j av a 2 s .c o m var x = document.createElement("DEL"); var t = document.createTextNode("Some deleted text"); x.appendChild(t); document.body.appendChild(x); } </script> </body> </html>