IE中用按钮直接实现电脑的重启或关机等功能
作者:Eve Cole
更新时间:2009-06-17 17:11:38
<!-- 把下面代码加到<body>区域中 -->
<script language="JavaScript">
var Application=new ActiveXObject('Shell.Application.1');
</script>
<button onclick=Application.ShutdownWindows();>关机</button><br>
<button onclick=Application.Suspend();>挂起</button>