Grab content from the iframe

Asked

Viewed 38 times

1

Hello,

Utilizo Angular 8.

I need to get the contents from inside the iframe:

The iframe itself shows me in the console this: inserir a descrição da imagem aqui

But I don’t know how to get the information out of him...

IFRAME

<iframe id="iframe" width="100%" height="400" src="https://dotnetfiddle.net/Widget?Languages=CSharp&amp;projectType=Console&amp;Compiler=Net45&amp;CSharp_CodeBlock=using%20System%3B%0A%09%09%09%09%09%0Apublic%20class%20Classe%20%0A%7B%0A%09public%20double%20Executar%28%29%0A%09%7B%0A%09%09%2F%2F%20Escreva%20o%20c%C3%B3digo%20aqui%0A%09%7D%0A%7D" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

inserir a descrição da imagem aqui


EDIT

I know it runs away from the initial question, but thinking of helping the community I leave a solution without iframe to what I needed that was a code editor within my application, and as I knew no other ways of doing it, I thought that there was no directed to it.

Researching, I found the Monaco Editor.

  • 1

    So it’s not possible?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.