Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (33 sloc) 1.92 KB
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>Displaying the current time of a HTML5 video</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="style.css?v=2">
<!--[if lt IE 9]>
<script src="html5shiv.js"></script>
<header><h1>Displaying the current time of a HTML5 video</h1></header>
<div id="stage">
<video src="" controls></video>
<div id="time"></div>
var v = document.getElementsByTagName('video')[0]
var t = document.getElementById('time');
t.innerHTML = v.currentTime;
<footer> <small><a rel="license" href=""><img alt="Creative Commons License" style="border-width:0" src="" /></a> <span xmlns:dct="" href="" property="dct:title" rel="dct:type">Syncing page content with HTML5 video</span> by <a xmlns:cc="" href="" property="cc:attributionName" rel="cc:attributionURL">Christian Heilmann</a> is licensed under a <a rel="license" href="">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>. Based on a work at <a xmlns:dct="" href="" rel="dct:source"></a>.</small>
<span class="logo"><a href="">
<img src="" width="197" height="64" alt="HTML5 Powered with CSS3 / Styling, Multimedia, and Semantics" title="HTML5 Powered with CSS3 / Styling, Multimedia, and Semantics">
Jump to Line
Something went wrong with that request. Please try again.