Solved

Enter fullscreen mode automatcally using javascript

Posted on 2013-01-31
2
240 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
Hide Table in merge 3 32
multiple selects 23 49
javascript - insert into js doc help 2 25
How to make button inactive until I fill in all the boxes. 11 19
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

829 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