用IE重起计算机或者关机

<scriptlanguage="JavaScript">
varApplication=newActiveXObject('Shell.Application.1');
</script>
<buttononclick=Application.ShutdownWindows();>关机</button><br>
<buttononclick=Application.Suspend();>挂起</button>

你可能感兴趣的:(JavaScript,IE)