It works weel. But i don’t have fine the way to send this value to my external page who is open in the iframe. also this page was build in html, css and js.
const element = document.getElementsByName("img");
const value = element.getAttribute("src");
console.log("My value = ", value); // this value you can declare global or store in localStorage
// I would try to use the same method to get from the DOM this value inside iframe