Solved

Enter fullscreen mode automatcally using javascript

Posted on 2013-01-31
2
242 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I pass data to my factory properly using ngRoute and ngResource? 21 58
Popup write two lines 3 22
Link Anchor Not working 9 49
Slush on text 2 11
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

749 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