Answers for "iframe in jquery div"

1

jquery get iframe content

$("#myiframe").contents().find("#myContent")

<!-- Example : http://simple.procoding.net/2008/03/21/how-to-access-iframe-in-jquery/-->
<!-- Doc : https://api.jquery.com/contents/ -->
Posted by: Guest on February-27-2021
1

jquery insert html into iframe

const doc = document.getElementById('ELEMENT_ID').contentWindow.document;
doc.open();
doc.write(`<html><head><title></title></head><body></body></html>`);
doc.close();
Posted by: Guest on October-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language