iframe jquery call function outside of ifrae code example Example: get an element from outside of iframe jquery $('#test1', parent.document).html('<h1>clicked</h1>');