Javascript has a fullscreen API:
Fullscreen API - Web APIs | MDN[
^]
However, for security reasons, you cannot force your page to display full-screen. Any request to switch to full screen which is not in response to user interaction will automatically be blocked.
Once your page is in full-screen, the user will always have the option to exit.
Just imagine the carnage malicious sites could do if they could force their page to be full-screen as soon as you opened it, and prevent you from exiting!
If you have complete control of the system, you should instead use the command-line arguments to launch the browser in full-screen mode. For example, with Chrome you can use the
--kiosk
command-line argument:
Run chrome in fullscreen mode on Windows - Stack Overflow[
^]
The simplest solution for VLC would probably be to create and apply a custom skin:
VLC media player - Skins - VideoLAN[
^]
VLC media player - Skin Editor - VideoLAN[
^]