当前位置:网站首页>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.
边栏推荐
- MapReduce编程基础
- Meituan machine test in 2022
- Bird recognition app
- Simple load balancing with Nacos
- 手指点击屏幕就模拟进入F11进入全屏
- LeetCode 344. Reverse string
- 【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云、小程序、Arduino的温湿度监控系统
- 【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + MQ系列 + NodeJs本地服务 + MySql存储
- Learning practice: comprehensive application of cycle and branch structure (II)
- 闭包实现迭代器效果
猜你喜欢
ESP8266 FreeRTOS开发环境搭建
Ranking list of domestic databases in February, 2022: oceanbase regained the "three consecutive increases", and gaussdb is expected to achieve the largest increase this month
Daily practice of C language - day 80: currency change
【pytorch】2.4 卷积函数 nn.conv2d
PR training notes
小鸟识别APP
钓鱼识别app
Jetson Nano 安装TensorFlow GPU及问题解决
Why is the Ltd independent station a Web3.0 website!
How to solve the problem of fixed assets management and inventory?
随机推荐
In the middle of the year, where should fixed asset management go?
Shell script -read command: read data entered from the keyboard
[ESP nanny level tutorial] crazy completion chapter - Case: chemical environment system detection based on Alibaba cloud and Arduino, supporting nail robot alarm
Redis source code learning (29), compressed list learning, ziplist C (II)
Shell script -select in loop
小鸟识别APP
SDN_简单总结
2022.02.15_ Daily question leetcode six hundred and ninety
【电赛训练】红外光通信装置 2013年电赛真题
Design and manufacture of simple digital display electronic scale
手指点击屏幕就模拟进入F11进入全屏
2.4 激活函数
Reproduced Xray - cve-2017-7921 (unauthorized access by Hikvision)
【pytorch】2.4 卷积函数 nn.conv2d
【pytorch】nn.CrossEntropyLoss() 与 nn.NLLLoss()
Latex插入的eps图片模糊解决方法
Closure implementation iterator effect
The jar package embedded with SQLite database is deployed by changing directories on the same machine, and the newly added database records are gone
Shell script case in and regular expressions
Phishing identification app