Home >Web Front-end >HTML Tutorial >How to write regular rules to remove all tags using Dreamweaver_html/css_WEB-ITnose
Just like the question
Can anyone help?
It’s okay not to use regular expressions, just use var directly imgs = document.getElementsByTagName("img"); Then delete them one by one.
var reg = /
var str = "
var images=document.images;
var x=images.length;
for(var i=0;i
p.removeChild(images[0]);
}