Tiny Fullscreen API Helper With jQuery - full-screen-helper.js

File Size: 23.7 KB
Views Total: 3565
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Tiny Fullscreen API Helper With jQuery - full-screen-helper.js

A cross-browser HTML5 fullscreen API helper which allows to display any DOM elements or the whole document in fullscreen mode. Can be implemented in jQuery or Vanilla JavaScript.

How to use it:

1. To use the plugin, you first need to load the following JavaScript and CSS files in the document.

<link rel="stylesheet" href="full-screen-helper.css">
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="full-screen-helper.js"></script>

2. Set a given element to fullscreen:


3. Exit the fullscreen mode.


4. Toggle the fullscreen mode.


5. Event listener.

$(document).on("fullscreenchange", function () {
  if ($.fullScreenHelper("state")) {
    console.log("In fullscreen", $(":fullscreen"));
  } else {
    console.log("Not in fullscreen");



  • v1.0.5


  • v1.0.4


  • v1.0.2


  • Improvements and npm

This awesome jQuery plugin is developed by brcontainer. For more Advanced Usages, please check the demo page or visit the official website.