Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <video id="video" src="http://shapeshed.com/examples/HTML5-video-element/video/320x240.ogg" controls allowfullscreen></video>
</body>
</html>
 
function onFullScreen(e) {
  var isFullscreenNow = document.webkitFullscreenElement !== null
  alert('Fullscreen ' + isFullscreenNow)
}
document.getElementById("video").addEventListener('webkitfullscreenchange', onFullScreen)
document.getElementById("video").addEventListener('mozfullscreenchange', onFullScreen)
document.getElementById("video").addEventListener('fullscreenchange', onFullScreen)
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
AVGPpro
0viewers