title: how to get fullscreen for youtube api
body: <p>I just trying to set default allow  fullscreen for youtube api but i can't find that and  i am new  to javascript i tried so any many code but i didn't got.Actually i want to allow multiple youtube video  with full screen.</p>
  
  <p>here's the code i am working </p>
  
  <pre><code>&lt;div id="player"&gt;&lt;/div&gt;
  &lt;script src="http://www.youtube.com/iframe_api"&gt;&lt;/script&gt;
  
  &lt;script&gt;
      /**
       * Put your video IDs in this array
       */
      var videoIDs = [
          'MCgODvsmrmY',
          'RdyXFNgZdCw'
      ];
  
      var player, currentVideoId = 0;
  
  
      function onYouTubeIframeAPIReady() {
          player = new YT.Player('player', {
              height: '350',
              width: '425',
              events: {
                  'onReady': onPlayerReady,
                  'onStateChange': onPlayerStateChange
              }
          });
      }
  
      function onPlayerReady(event) {
          event.target.loadVideoById(videoIDs[currentVideoId]);
          node.requestFullScreen();
  
  document.fullScreen; 
  
      }
  
      function onPlayerStateChange(event) {
          if (event.data == YT.PlayerState.ENDED) {
              currentVideoId++;
              if (currentVideoId &lt; videoIDs.length) {
                  player.loadVideoById(videoIDs[currentVideoId]);
              }
          }
      }
  &lt;/script&gt;
  
  &lt;script&gt;
  window.onload = function(){
      document.getElementsByClassName("ytp-button-fullscreen-enter").click();
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Regards
  madu</p>