当前位置:网站首页>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.
边栏推荐
- How to manage fixed assets well? Easy to point and move to provide intelligent solutions
- Shell script - array definition and getting array elements
- Reproduced Xray - cve-2017-7921 (unauthorized access by Hikvision)
- 序列化、监听、自定义注解
- 记一次redis超时
- JS原型链
- 韦东山板子编译内核问题解决
- Phishing identification app
- How to realize the usage of connecting multiple databases in idel
- ES6 decoupling top-level objects from windows
猜你喜欢
【pytorch】nn. Crossentropyloss() and nn NLLLoss()
Bird recognition app
Redis -- lattice connects to redis cluster
小鸟识别APP
队列的实现和应用
Principle and application of single chip microcomputer timer, serial communication and interrupt system
JS prototype chain
Design and manufacture of simple digital display electronic scale
Learning practice: comprehensive application of cycle and branch structure (II)
2.4 激活函数
随机推荐
【检测技术课案】简易数显电子秤的设计与制作
How to solve the problem of fixed assets management and inventory?
How to effectively align team cognition
How to manage fixed assets well? Easy to point and move to provide intelligent solutions
Error org apache. catalina. core. StandardContext. FilterStart start filter exception
phpexcel 里 获取某一列的列表 获取某一列的字母
2.3 【kaggle数据集 - dog breed 举例】数据预处理、重写Dataset、DataLoader读取数据
Reproduced Xray - cve-2017-7921 (unauthorized access by Hikvision)
队列的实现和应用
Shell script -for loop and for int loop
JS prototype chain
PR training notes
Yidian Yidong helps enterprises to efficiently manage equipment and improve equipment utilization
ESP8266 FreeRTOS开发环境搭建
Daily practice of C language - day 80: currency change
JS scope chain and closure
nacos服务配置和持久化配置
Principles of Microcomputer - Introduction
计网01-物理层
js重写自己的函数