Skip to content Skip to sidebar Skip to footer

Get JSON Text From HTML Iframe

I want to submit a form into an iframe and get the result. The result has to be a text that javascript can understand, so I think that JSON is the best idea. I know how to get the

Solution 1:

You can communicate via JavaScript.

The parent window can be reached using the parent property inside the iframe:

From the iframe do

window.parent.SomeFunctionDefinedInTheParent(JSONObject);

Post a Comment for "Get JSON Text From HTML Iframe"