title: Trigger when youtube video finished
body: <p>Following is my code.</p>
  
  <pre><code>&lt;object width="620" height="327"&gt;
      &lt;param name="movie" value="http://youtube.googleapis.com/v/0s5lxs7Xvu8?autoplay=1&amp;showinfo=0&amp;controls=1&amp;rel=0"&gt;&lt;/param&gt;
      &lt;param name="allowScriptAccess" value="always"&gt;&lt;/param&gt;
      &lt;embed src="http://youtube.googleapis.com/v/0s5lxs7Xvu8?autoplay=1&amp;showinfo=0&amp;controls=1&amp;rel=0" id="video1" type="application/x-shockwave-flash" allowscriptaccess="always" width="620" height="327" onended="videoEnded()"&gt;&lt;/embed&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>I want to display an alert message when the video comes to end. Can you please help me on this. Need to do it in jQuery</p>