function launchFullscreen(element) {
  var enabled = document.fullscreenEnabled ||
                document.webkitFullscreenEnabled ||
                document.mozFullScreenEnabled ||
                document.msFullscreenEnabled;
  if (!enabled) {
    throw new Error('Fullscreen not enabled in this browser.');
  }
  if(element.requestFullscreen) {
    element.requestFullscreen();
  } else if(element.mozRequestFullScreen) {
    element.mozRequestFullScreen();
  } else if(element.webkitRequestFullscreen) {
    element.webkitRequestFullscreen();
  } else if(element.msRequestFullscreen) {
    element.msRequestFullscreen();
  }
}
Gets the current URL path as an array.
@method getURLPath
@return {String[]} path components
@example
<div class='norender'><code>
function setup() {
  var urlPath = getURLPath();
  for (var i=0; i&lt;urlPath.length; i++) {
    text(urlPath[i], 10, i*20+20);
  }
}
</code></div>

@alt
no display