0

I'm curious if a javascript based script can search the embedded website's html and return a true/false value on the existence of ID #foo in its contents

uskro
  • 11
  • 1
  • 3
  • 5
    Possible duplicate of [jQuery/JavaScript: accessing contents of an iframe](http://stackoverflow.com/questions/364952/jquery-javascript-accessing-contents-of-an-iframe) – Adam Konieska Jan 20 '16 at 15:01
  • I think you will find this answer useful :) http://stackoverflow.com/questions/1451208/access-iframe-elements-in-javascript – Dippner Jan 20 '16 at 15:03

1 Answers1

2

.contents() might be useful for you to read!

  • Thanks for the answer, but doesn't this method fail when the iframed url is not on the same domain? – uskro Jan 21 '16 at 15:05