title: How do I have a popup/popover appear when a YouTube video finishes?
body: <p>I am trying to figure out a way to trigger a javascript modal popup/popover when a YouTube video finishes.</p>
  
  <p>I first saw this achieved on UpWorthy.com. See this video for an example when the video ends: <a href="http://www.upworthy.com/bully-calls-news-anchor-fat-news-anchor-destroys-him-on-live-tv" rel="nofollow">http://www.upworthy.com/bully-calls-news-anchor-fat-news-anchor-destroys-him-on-live-tv</a></p>
  
  <p>I have enabled the javascript api by adding the JS parameter to the embed code (enablejsapi=1)</p>
  
  <p>I am using this Simple Modal script to achieve the modal: <a href="http://www.ericmmartin.com/projects/simplemodal/" rel="nofollow">http://www.ericmmartin.com/projects/simplemodal/</a></p>
  
  <p>How do I get the end of the youtube video to trigger it?</p>
  
  <p>Many thanks</p>