Home >Web Front-end >JS Tutorial >JQuery and iframe interaction implementation code_jquery
How to find elements in the parent page in the iframe:
$('#id', window.parent.document)
How to get the elements in the iframe in the parent page:
$ (this).contents().find("#suggestBox")
Call the methods and variables defined in the parent page in the iframe:
parent.method
parent.value