How to capture onfinish event of a video
<p>What I want to do is play a video after a user logs in, and then use javascript or jQuery to reload the current page with <code>GET</code> parameter <code>video_finished = 1</code>. Then if <code>GET['video_finished']</code> is true, go back to the homepage, else play the video. </p>

<p>I know how to handle PHP code, but don't know write javascript or jQuery to capture the <code>onfinish</code> event and reload the current page with <code>GET</code> parameter <code>video_finished = 1</code>. </p>

<p>Can anyone can help me? </p>

<p>Thanks</p>

<pre><code>&lt;p&gt;&lt;strong&gt;&lt;font color="red"&gt;&lt;em&gt;&lt;u&gt;Amway - Optimal You &lt;/u&gt;&lt;/em&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;&lt;br/&gt;&lt;br /&gt;
&lt;div style="width: 100%; width:640px;"&gt;
&lt;cms:video src="https://s3.amazonaws.com/4af7/0d82f79f-38cf-447d-9aeb-eb7db3bbf874-OY_Incentive_Program__Supers.mp4" clipAutoPlay="1"/&gt;
&lt;br /&gt;&lt;p&gt;&lt;a href="/home"&gt;Go to Optimal You home page&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
</code></pre>
