0

Hi i wan to access html elements inside an iframe. This is my code

<iframe id="myframe" name="myframe"  src='http://someurl.com' width="1200" height="2000">                
</iframe>
var content = $('#myframe').html();
alert(content);
if(content.indexOf("ADD A BOOKING ") !== -1)
{
    //some code here
}

but i get nothing in alert Note:I am trying this on localhost.

user1914979
  • 1
  • 1
  • 1

0 Answers0