Enter fullscreen mode automatcally using javascript

I found the following post which describes how to toggle a web page to fullscreen mode using keystrokes.
Post: Enter fullscreen mode using javascript
It works well.
However my need is to open the web page by default in fullscreen mode.
I failed to modify the code and use requestFullScreen function.
How can I do it?
Who is Participating?

Improve company productivity with a Business Account.Sign Up

MrunalConnect With a Mentor Commented:

fullscreen mode [function -> requestFullscreen()] cannot be called automatically because of security reasons.

check out more details:


Another example: (with keystroke)

leakim971Connect With a Mentor PluritechnicianCommented:
You can't
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.