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>
  <a href="#" onclick="open_in_new_window('location=1,status=1,toolbar=1,resizeable=1,width=350,height=100');">Open New Window</a>
  <div id="html_contents">
    <video controls style="width: 100%; height: 100vh;">
      <source src="http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4" type="video/mp4" />
    </video>
  </div>
</body>
</html>
 
function open_in_new_window(features) {
  var new_window;
  
  if(features !== undefined && features !== '') {
    new_window = window.open('', '_blank', features);
  }
  else {
    new_window = window.open('', '_blank');
  }
  
  var html_contents = document.getElementById('html_contents');
  if(html_contents !== null) {
    new_window.document.write('<!doctype html><html><head><title>Video Player</title><meta charset="UTF-8" /></head><body style="padding: 0; margin: 0;">' + html_contents.innerHTML + '</body></html>');
  }
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers