Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript fullscreen

// element which needs to enter full-screen mode
var element = document.querySelector("#container");

// make the element go to full-screen mode
element.requestFullscreen()
	.then(function() {
		// element has entered fullscreen mode successfully
	})
	.catch(function(error) {
		// element could not enter fullscreen mode
	});
Source by usefulangle.com #
 
PREVIOUS NEXT
Tagged: #javascript #fullscreen
ADD COMMENT
Topic
Name
3+6 =