javascript - Switch window between normal and full-screen mode - Stack Overflow

Is it possible to force window to switch between normal and full-screen mode by JavaScript (no jQuery).

Is it possible to force window to switch between normal and full-screen mode by JavaScript (no jQuery)..?

I know how to open a new window in full-screen, but that is not what I need.

Is it possible to force window to switch between normal and full-screen mode by JavaScript (no jQuery)..?

I know how to open a new window in full-screen, but that is not what I need.

Share Improve this question edited Jul 16, 2013 at 15:24 000 27.3k10 gold badges74 silver badges103 bronze badges asked Jul 11, 2012 at 15:43 ΩmegaΩmega 43.7k35 gold badges142 silver badges211 bronze badges 3
  • Have you read this? sitepoint./html5-full-screen-api/#fbid=hhFRAbSolMC – Neil Commented Jul 11, 2012 at 15:45
  • @Neil - Nice, but I need Opera support (if possible). – Ωmega Commented Jul 11, 2012 at 15:49
  • possible duplicate of How to make in Javascript full screen windows (stretching all over the screen) – kapa Commented Jul 11, 2012 at 15:54
Add a ment  | 

2 Answers 2

Reset to default 6

There's now a proper fullscreen API (first proposed by Mozilla and later released as a W3C proposal) has been implemented by Webkit (Safari 5.1+/Chrome 15+) and Firefox (10+). A brief history and usage examples here. Note that IE10 will allegedly not support the API.

You could try the experimental FullScreen API.

  • Using full-screen mode on MDN
  • W3c Fullscreen Living Spec
  • Browser Support

If you are not satisfied with the browser support, there is one more option: display a message to the user about how F11 switches to Fullscreen mode. Used this as a fallback option in a recent webapp I worked on, and the feedback was satisfactory.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744064926a4552468.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信