How to press a button on the top of an iframe to push another button in the iframe? I-frame on my website
Closed due to the fact that off-topic participants Pavel Parshin , fori1ton , user194374, Nick Volynkin ♦ 10 Feb '16 at 13:34 .
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
- “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Nick Volynkin
|
1 answer
$('[name=temp_iframe]').contents().find('button').click(function() { alert('click'); }); But only if the frame and the page from the same domain
- If not difficult, write the opposite? (from iframe to parent) - noadev
- For example, something like this: window.parent.document.getElementById ('# target'). Click (); - carapuz
getElementById('target')- Igor
|