Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Enter fullscreen mode automatcally using javascript

Posted on 2013-01-31
2
Medium Priority
?
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
Mrunal earned 750 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 750 total points
ID: 38839270
You can't
0

Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

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 demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

722 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