Answer the question
In order to leave comments, you need to log in
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.valuebut gives out
undefined
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question