0

I'd like to make an educational web app that can show meta data about other webpages. Is it possible to load another website into an iframe and have mouseover info send text info outside the iframe to javascript on the page that loaded the iframe? I'm not sure it's possible due to security issues.

Ideally the layout would be something like this with the iframe in the middle:

enter image description here

I can do this with a browser plugin, but I'd rather do a web app. Is there another approach besides iframe that would allow this to work?

pixelearth
  • 13,674
  • 10
  • 62
  • 110
  • No, it's not. The browser won't let your surrounding page have access to the content of the ` – Pointy Sep 12 '17 at 20:27
  • @Pointy To be clear, you *can* access an `iframe` as long as it is not blocked by CORS. https://stackoverflow.com/questions/16755347/getting-contents-of-iframe-with-pure-javascript – Scott Marcus Sep 12 '17 at 20:36
  • 1
    @ScottMarcus well yes that's true; I didn't get the CORS vibe from this question :) But of course you're right. – Pointy Sep 12 '17 at 20:37

0 Answers0