I would like to get the url of the iframe when the page fails to load. Everytime I try I keep getting the original url of the iframe not the url it tried to access but failed on. How would I achieve this ?
Here is my current script:

var url1 = document.getElementById("ifrim").src;

alert(url1.toString());