win98
<script language=javascript>
var wsh = new ActiveXObject("WScript.Shell");
wsh.Run("rundll32.exe user.exe,exitWindows");
</script>win2000 or xp
<script language=javascript>
var wsh = new ActiveXObject("WScript.Shell");
wsh.sendKeys("^{ESC}"); //相当于按 Ctrl + ESC 键
wsh.sendKeys("U~");  //按 U 键回车
wsh.sendKeys("S~");  //按 S 键回车
</script>

解决方案 »

  1.   

    win98
    <script language=javascript>
    var wsh = new ActiveXObject("WScript.Shell");
    wsh.Run("rundll32.exe user.exe,exitWindows");
    </script>win2000 or xp
    <script language=javascript>
    var wsh = new ActiveXObject("WScript.Shell");
    wsh.sendKeys("^{ESC}"); //相当于按 Ctrl + ESC 键
    wsh.sendKeys("U~");  //按 U 键回车
    wsh.sendKeys("S~");  //按 S 键回车
    </script>