title: how to auto load javascript after iframe
body: <p>i have iframe embed code of youtube video and i want to auto load javascript after each iframe. i using wordpress. </p>
  
  <p>I want to create this - when the user open any post/page in my wordpress website, if the post/page contain any iframe then javascript auto load after each iframe.</p>
  
  <p>this is javascript which i want to load after iframe.</p>
  
  <pre><code>&lt;script src="https://apis.google.com/js/platform.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  function onYtEvent(payload) {
  if (payload.eventType == 'subscribe') {
    // Add code to handle subscribe event.
  } else if (payload.eventType == 'unsubscribe') {
    // Add code to handle unsubscribe event.
  }
  if (window.console) { // for debugging only
    window.console.log('YT event: ', payload);
  }
  }
  &lt;/script&gt;
  
  &lt;div class="g-ytsubscribe" data-channelid="UC_Lmg76m-DMN_EVURz_G9zw" data-layout="full" data-count="hidden" data-onytevent="onYtEvent"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>this is iframe </p>
  
  <pre><code>&lt;iframe width="560" height="315" src="https://www.youtube.com/embed/blablabla" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/SoYu6.png" rel="nofollow">i wanna create like this</a></p>