can you please explain, how can i get the correct path of styles of html element that has been added through css (eg, background:ulr()) using javascript or jQuery.
var img = document.querySelectorAll('*');
img.forEach(function(i){
var imageSrc = new Image();
i.addEventListener("mouseover", function(e){
if(i.style.background){
}
})
});
can the i.style.background find the correct css DOM path?
i've added a fiddle.
https://codepen.io/saifudazzlings/pen/VQvooy