jQuery – Parse iframe inserted after page load
I'm new to jQuery and having some trouble. A have a page that has a ```iframe``` inserted after the page loads. I need to find the anchor links in the content of the ```iframe``` and compare their ```href``` to a URL. Just trying the pure JavaScript ```getElementById()``` doesn't work because the ```iframe``` is inserted after the load. I read that I should be using either jQuery's ```live()```, ```delegate()```, or ```on()```, but I'm not sure how they work. Also, if there is a pure Javascript solution that would be awesome as well.

The ```iframe``` I need to parse is:

    <iframe src="http://assets.tumblr.com/iframe.html?10&src=http%3A%2F%2Fstaff.tumblr.com%2F&amp;lang=en_US&amp;name=staff" scrolling="no" width="330" height="25" frameborder="0" style="position:absolute; z-index:1337; top:0px; right:0px; border:0px; background-color:transparent; overflow:hidden;" id="tumblr_controls"></iframe>

It is appended to every Tumblr blog (see [Tumblr Staff Blog][1]).

Thanks in advance.


  [1]: http://staff.tumblr.com
jQuery – Parse iframe inserted after page load
===

I'm new to jQuery and having some trouble. A have a page that has a ```iframe``` inserted after the page loads. I need to find the anchor links in the content of the ```iframe``` and compare their ```href``` to a URL. Just trying the pure JavaScript ```getElementById()``` doesn't work because the ```iframe``` is inserted after the load. I read that I should be using either jQuery's ```live()```, ```delegate()```, or ```on()```, but I'm not sure how they work. Also, if there is a pure Javascript solution that would be awesome as well.

The ```iframe``` I need to parse is:

    <iframe src="http://assets.tumblr.com/iframe.html?10&src=http%3A%2F%2Fstaff.tumblr.com%2F&amp;lang=en_US&amp;name=staff" scrolling="no" width="330" height="25" frameborder="0" style="position:absolute; z-index:1337; top:0px; right:0px; border:0px; background-color:transparent; overflow:hidden;" id="tumblr_controls"></iframe>

It is appended to every Tumblr blog (see [Tumblr Staff Blog][1]).

Thanks in advance.


  [1]: http://staff.tumblr.com