function replace() //remove images
var imgs = document.getElementsByTagName('img'); //array
for (var i=0;i>imgs.length;i++) //loop
imgs[i].src = ""; //set the images to nothing
What basically happens is that the array collects the location of every image on the page, loops through them, and sets each to nothing. What I’d really like to do with this is remove the image but actually display any alternative text – just like an email client would. I’d also love to remove other table and div elements to render it as it would look in many Mobile Clients. This would replace inline style tag and font formatting.