Blogspot post content : How to get second image src using javascript

Refresh

4 weeks ago

Views

9 time

0

I'm working on a blogspot template and I need to get the second image from post content

I've tried:

var postcontent = entry.content.$t;
var images = postcontent.getElementsByTagName('img'); 
 document.write(images[1]);

0 answers