Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I have following code index.html
<html> <div id="updateMe">Old Data</div> <iframe src="test.html"> </iframe> </html>
test.html
<html> <input type="button" value="UpdateToParent Frame"> </html>
I can use jquery and javascript
#updateMe
This is an area that has many security considerations around it - it is possible to send an event to a parent window via javascript using parent.postMessage
David Walsh has a great example on his blog:
http://davidwalsh.name/window-iframe
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
#updateMe? Changing the content of#updateMe? Something else?