当前位置:网站首页>Click the screen with your finger to simulate F11 and enter the full screen
Click the screen with your finger to simulate F11 and enter the full screen
2022-07-01 09:19:00 【What about your long love~】
window.onclick = document.onclick = function (e) {
fullScreen();
}
function fullScreen() {
var el = document.documentElement;
var rfs = el.requestFullScreen || el.webkitRequestFullScreen ||
el.mozRequestFullScreen || el.msRequestFullScreen;
if (typeof rfs != "undefined" && rfs) {
rfs.call(el);
} else if (typeof window.ActiveXObject != "undefined") {
//for IE, This is actually a simulation of pressing the keyboard F11, Make the browser full screen
var wscript = new ActiveXObject("WScript.Shell");
if (wscript != null) {
wscript.SendKeys("{F11}");
}
}
}
html You don't need to write anything , Use only this paragraph js That's all right.
边栏推荐
- Shell script - definition, assignment and deletion of variables
- 【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + MQ系列 + NodeJs本地服务 + MySql存储
- 【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云、小程序、Arduino的WS2812灯控系统
- ES6 decoupling top-level objects from windows
- Log4j 日志框架
- LeetCode 344. Reverse string
- Why is the Ltd independent station a Web3.0 website!
- js变量提升(hoisting)
- 【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + DS18B20温度传感器 +NodeJs本地服务+ MySQL数据库
- nacos简易实现负载均衡
猜你喜欢

How to manage fixed assets efficiently in one stop?

Redis -- lattice connects to redis cluster

JS prototype chain

Learning practice: comprehensive application of cycle and branch structure (II)

Simple load balancing with Nacos

Microcomputer principle - bus and its formation

2.2 【pytorch】torchvision. transforms

MapReduce编程基础

樹結構---二叉樹2非遞歸遍曆

Reproduced Xray - cve-2017-7921 (unauthorized access by Hikvision)
随机推荐
【电赛训练】红外光通信装置 2013年电赛真题
Understand shallow replication and deep replication through code examples
【pytorch】nn. AdaptiveMaxPool2d
Shell script -while loop explanation
Shell script - string
2022.02.15_ Daily question leetcode six hundred and ninety
How to manage fixed assets efficiently in one stop?
es6-顶层对象与window的脱钩
js函数arguments对象
In the middle of the year, where should fixed asset management go?
PR training notes
Shell script echo command escape character
Tree structure -- binary tree 2 non recursive traversal
Shell script - array definition and getting array elements
Pain points and solutions of equipment management in large factories
Summary of reptile knowledge points
MT7628K eCos开发入门
R language observation log (part24) -- initialization settings
Mysql8.0 learning record 17 -create table
Shell script -read command: read data entered from the keyboard