I am trying to determine if the source code of an image has changed.
In my case, src is changed with jquery, and I have no right to modify the jquery file. Therefore, I am trying to detect a src change from an img element.
I would like to see the source if src is changed, just for testing
This is my current code:
var divimg = document.getElementById("img_div"); divimg.onchange = alert(divimg.getElementsByTagName('img')[0].src);
On the page, load the warning and show me src, but don't change src from jquery
source share