window.addEventListener("DOMContentLoaded", function () { alert( document.querySelector(".post_img img").src ); });