How to make the window full screen with Javascript (stretching all over the screen)

后端 未结 19 1805
天涯浪人
天涯浪人 2020-11-21 22:13

How can I make a visitor\'s browser go fullscreen using JavaScript, in a way that works with IE, Firefox and Opera?

19条回答
  •  梦如初夏
    2020-11-21 22:54

    You can use The fullscreen API You can see an example here

    The fullscreen API provides an easy way for web content to be presented using the user's entire screen. This article provides information about using this API.

提交回复
热议问题