0

I made Asp.Net web page with <iframe>

 <body>
   <iframe src="http://example.com"></iframe>
 </body>

When i inspect that page in Chrome, i recive some message in console console

I need grab that message and when find specific text do some staff in my web page.

Any solution is welcome.

Drdexa
  • 11

1 Answers1

3

Not possible if page inside IFrame is on different domain.

If page inside IFrame is on the same domain as parent page you may try to capture messages send to console by overriding console.log inside IFrame with JavaScript on parent page.

You may want to read on "same origin policy" to have better idea what should/should not be possible in a browser.

Community
  • 1
  • 1
Alexei Levenkov
  • 98,904
  • 14
  • 127
  • 179