title: add `load` event for EVERY iFrame on a page
body: <p>I have a page that has dynamically added iFrames in it. I want to catch the "onLoad" event for every iFrame.</p>
  
  <p>So basically, I want to attach the event to the body but have it apply to every child iFrame. This works for other events, but it seems like the "load" event isn't propagating.</p>
  
  <p>Here's what I've tried so far:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).on("load", "iframe", function() {
   $("body").append("this is what I want, but it doesn't work!");
  });
  
  var iFrame = $("&lt;iframe/&gt;", {
          srcdoc  : "&lt;html style='overflow: hidden;'&gt;&lt;body&gt;Appended iFrame&lt;/body&gt;&lt;/html&gt;"
  });
  
  $("body").append(iFrame);
  
  iFrame.on("load",function(){
   $("body").append("this seems to work.... but isn't what I'm looking for.");
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>and here it is on jsfiddle:
  <a href="https://jsfiddle.net/skeets23/qsrf802z/8/" rel="nofollow noreferrer">https://jsfiddle.net/skeets23/qsrf802z/8/</a></p>
  
  <p>Any way to get this working as expected? So I can just create one binding and have it work for any number of dynamically added iFrames?</p>