0

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

1
  • What's the problem? Getting a reference to a parent window? Finding #updateMe? Changing the content of #updateMe? Something else? Commented Nov 14, 2013 at 15:01

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

link fixed - http was missing

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.