I am developing a web application and improving user experience. I want to switch the browser in full screen. Any ideas how to do this (except that the user does it himself)?
It is possible to use FullScreenApi , which is supported at least in Chrome 27, FF 21, Safari 5.1 and Opera 16. It will also be supported by IE 11. There is also a small wrapper for the API.
Javascript.resizeTo(screen.width,screen.height)
Impossible. If you really want this, you need to open a new window:
var win = window.open ('html.file', 'Name', 'fullscreen = true');
You cannot do full-screen mode, but you can simply resize the window to the available width and height of the screen.
Source: https://habr.com/ru/post/1344397/More articles:What is the difference in code execution when wrapping these methods - javascriptAre there getattr, callable and other metaprogramming functions in java? - javaCreate a new lagging column data.frame - rDetecting duplicate values ββin a Java primitive array - javaIs there a way to view the browser window full screen using jQuery or javascript? - javascriptIs it possible to reuse a backgroundworker object? - multithreadingClass level event handler in WPF - eventspass argument to previous activity - androidJavascript: automatically increase browser window and switch to full screen mode? - javascriptVim: Imprint of cucumber for the And lines - vimAll Articles