S
S
Samuello2019-03-16 04:51:45
JavaScript
Samuello, 2019-03-16 04:51:45

How to assign iframe value to input?

Hello everyone, I'm making a VISIVIG editor. So, how to assign everything that is in the iframe to the input?
Tried through

myIframe.value
but gives out
undefined

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2019-03-16
@Stalker_RED

iframe.contentWindow.body.innerHTML
https://developer.mozilla.org/en-US/docs/Web/API/H...
If the iframe is from another domain, then you will need to configure CORS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question