How to jump to a video time using javascript

I'm playing a video on a webpage and I'd like to be able to click on a link/button that will jump the video to that time.

ie: I click on a link that references something 2min into the video, I'd like the video to jump to the 2min mark.

I've seen things for html 5 but I can't seem to get them working.

I've tried using the <embed> and <objects> tags as well as <video>.
JPClaudeAsked:
Who is Participating?
 
Michel PlungjanConnect With a Mentor IT ExpertCommented:
Something like

<a href="http://youtu.be/MEkS_mQ0GlI?t=2m00s" onclick="document.getElementById('video').src=this.href; return false">2:00</a>
0
 
JPClaudeAuthor Commented:
Exactly. My boss wants to do something like that for a project and until HTML 5 comes out, I'm not sure how to proceed.
0
 
Michel PlungjanIT ExpertCommented:
I just showed you
Add the embed with an ID of video
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.