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
Asked
Active
Viewed 22 times
0
-
5Possible 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 Answers
2
.contents() might be useful for you to read!

James J. Hill
- 129
- 6
-
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