Going through some examples on building a video control panel for an HTML5 element and a a pattern I don't understand popped up here?
http://dev.opera.com/articles/view/introduction-html5-video/#scripting
in particular:
var v = document.getElementById('videoPlayer');
v.addEventListener('timeupdate',updateTimeDisplay,true);
function updateTimeDisplay(e) {
document.getElementById('timeDisplay').innerHTML = e.target.currentTime;
}
Where did that 'e' come from in the function? What does it reference? Where can I learn more about what it is doing?