title: Hide iframe when Youtube video ends
body: <p>Thank you everyone in advance.
  I need some help hidding an iframe youtube video when it ends can someone guide me how to do that??</p>
  
  <pre><code> &lt;iframe id="promo_video" src="http://www.youtube.com/embed/XzZudNOwkU8" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" style="display:none;position:absolute;top:228px;left:492px;" height="527" width="934" frameborder="0"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>i need something like this but i cant find how to make it </p>
  
  <pre><code> &lt;script &gt;
  function myFunction()
  {
      if (promo_video.end=positive)
      reload anotherother page
  
  
      }
  
  
  &lt;/script&gt;
  </code></pre>