Make an event happen in child iframe to the parent window in JavaScript?

Use contents() to access the Document object inside an iframe. Note that there are in general problems with using a jQuery library in one document to manipulate another document and it should in general be avoided. However, in the case of binding events it does work.

Use contents() to access the Document object inside an iframe. Note that there are in general problems with using a jQuery library in one document to manipulate another document and it should in general be avoided. However, in the case of binding events it does work.

$('name=temp_iframe').contents(). Find('button'). Click(function() { alert('click'); }); This requires that the iframe and its contents are loaded, so do it in a $(window).load() handler if necessary.

You can't live/delegate across documents, as events don't propagate from a child document into its parent.

Perfect! Thanks! I put it in a .

Load('iframe') instead though – Oscar Godson Sep 9 '10 at 17:51.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions