Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <script src="http://www.youtube.com/iframe_api"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <a href="javascript:void(0);" onclick="play();">Play</a>
  <iframe id="myvideo" width="450" height="253" src="//www.youtube.com/embed/uT3SBzmDxGk?enablejsapi=1" frameborder="0" allowfullscreen></iframe>
</body>
</html>
 
window.ytplayer = null;
function onYouTubeIframeAPIReady() {
  ytplayer = new YT.Player('myvideo');
}
function play() {
  if (ytplayer) {
    ytplayer.playVideo();
  }
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers