I want to get all images from a iframe and turn it into a array to get it src
var iframe = document.getElementById('iframeId');
var innerDoc = iframe.contentDocument || iframe.contentWindow.document;
var images = innerDoc.getElementsByTagName("img").innerHTML;
document.getElementById("inv").innerHTML = document.getElementById("inv").innerHTML + "<br>"+ images[0].src;
error: Uncaught DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame. at update (file:///H:/images.html:56:63)
error: Uncaught DOMException: Blocked a frame with origin "http://localhost" from accessing a cross-origin frame. at update (http://localhost/images.html:56:63)