Mode plein écran

async function FullScreenOn() {
  document.getElementById("fullscreenElement")
    .requestFullscreen()
    .then((response) => {
       console.log("full screen on");
    })
    .catch((error) => {
       console.log("Error: ", error);
    });
}

async function FullScreenOff() {
  document.exitFullscreen()
    .then((response) => {
       console.log("full screen off");
    })
    .catch((error) => {
       console.log("Error: ", error);
    });
}
Ill Ibis