电脑技术学习

IE中用按钮直接实现电脑的重启或关机等功能

dn001
<!-- 把下面代码加到<body>区域中 -->
<script language="JavaScript">
var Application=new ActiveXObject('Shell.Application.1');
</script>
<button onclick=Application.ShutdownWindows();>关机</button><br>
<button onclick=Application.Suspend();>挂起</button>