Search code examples
javascriptfullscreenkeypress

Put browser full screen and refresh on button click (simulate F11) JavaScript


I went through more than 10 questions with same content but not to find a updated answer. (world of web is changing rapidly I guess). First thing is, is it possible to put current window full screen simulating F11 press on a user button click. also what is the best practice for doing it if I want the function to work in all major browsers (IE, FF, Chrome and Safari).

How to make in Javascript full screen windows (stretching all over the screen)

Simulate F11 with javascript

onclick go full screen

including above links I went through lot of questions but had no susses. Its really helpful if someone can come up with an idea. Thanks.


Solution

  • maybe this can help you example of full screen using the blog post Native Fullscreen JavaScript API (plus jQuery plugin)