一段JavaScript的关机代码
win98 <script> var wsh = new ActiveXObject("WScript.Shell"); wsh.Run("rundll32.exe user.exe,exitWindows"); </script> win2000 or xp <script> var wsh = new ActiveXObject("WScript.Shell"); wsh.sendKeys("^{ESC}") wsh.sendKeys("{UP}~S~") </script> |