Solved

Enter fullscreen mode automatcally using javascript

Posted on 2013-01-31
2
237 Views
Last Modified: 2013-01-31
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?
0
Comment
Question by:yaron89
2 Comments
 
LVL 22

Accepted Solution

by:
Mrunal earned 250 total points
ID: 38839215
Hi,

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

check out more details:

https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#:fullscreen-pseudo-class

Another example: (with keystroke)

https://developer.mozilla.org/en-US/docs/DOM/Using_fullscreen_mode
0
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 250 total points
ID: 38839270
You can't
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question