DEV Community

Rajkumar Verma
Rajkumar Verma

Posted on

Answer: How to open a web page automatically in full screen mode

I have gone through above none worked for me..

This one is working.. very easy to use:

  <button
        onClick={toggleFullscreen}
        className="block w-full text-left px-4 py-2 text-sm text-gray-600 hover:bg-blue-50 hover:text-blue-600 transition-colors"
                                              &gt
        {isPresentationMode ? "OFF Presenting" : "Presentation Mode"}
 </button>


  // Add this state and ref with your existing useState
  const [isPresentationMode,

Top comments (0)