This question differs from other questions before, in that here we have a STYLE inside a CLASS name. That made it a little more complicated to me.
I want to alert() ONLY the url of a image showing in the website, that is accessible with its class name:
<div class='image-container-image' style="background-image:url(https://lh4.googleusercontent.com/-2h9xCStgaCM/AAAAAAAAAAI/AAAAAAAAhjs/TNS6opAJ52g/photo.jpg);">
</div>
I tried by doing:
alert( (document.querySelector('.image-container-image').textContent) );
Tried other different ways, but still no luck.
My output should be an alert showing the following url: "https://lh4.googleusercontent.com/-2h9xCStgaCM/AAAAAAAAAAI/AAAAAAAAhjs/TNS6opAJ52g/photo.jpg"
Your guidance is very much appreciated.