I want to find a HTML Content inside iFrame. I've following this code but seems doesn't works :
$('#iviFrame1').contents().find('#iViTag1').html();
I do on Firefox Console after iFrame load completely.
I also check my iFrame and contents inside it and found div with id iViTag1 :
<iframe
id="iviFrame1"
name="iVi Dashboard"
longdesc="iVi - Your Personal Dashboard"
style="display:inline"
src=""
width="100%"
height="98%"
align="middle"
frameborder="0"
marginwidth="0"
marginheight="0"
scrolling="auto"></iframe>
inside an Iframe :
<div id="iViTag1" style="display: none;"></div>
I've do $('#iviFrame1').contents().find('#iViTag1').html();
on Firefox Console and the console output underfined
here what I tried :
$('#iviFrame1').contents();
Object { length: 0, prevObject: {…}, context: HTMLDocument http://localhost:8080/WS_ivi/?p=8&o={7f377407-04cc-464e-ac78-17738486e94a}&v=1.7.5.8 }
$('#iviFrame2').contents().find('#iViTag1');
Object { length: 0, prevObject: {…}, context: HTMLDocument http://localhost:8080/WS_ivi/?p=8&o={7f377407-04cc-464e-ac78-17738486e94a}&v=1.7.5.8, selector: "#iViTag1" }
$("#iViTag1");
{…}
context: HTMLDocument http://localhost:8080/WS_ivi/?p=8&o={7f377407-04cc-464e-ac78-17738486e94a}&v=1.7.5.8
selector: "#iViTag1"
__proto__: Object { jquery: "2.1.4", constructor: n(), length: 0, … }
By the way, I used Firefox Quantum 57, JQuery 2.1.4 and my iFrame SRC comes from different IP. I used localhost and the iFrame SRC from another server.
I've followed any methods and doesn't works. If I check from inspector, I see the iViTag1 exist.
Any suggestion?