Restart the computer or shutdown the sample code with IE

  • 2020-03-30 02:21:52
  • OfStack

< Script language = "JavaScript" >
Var Application = new ActiveXObject (' 1 'Shell. Application.);
< / script>
< Button onclick = Application. ShutdownWindows (); > Shutdown < / button> < Br>
< Button onclick = Application. Suspend (); > Hang < / button>  

Related articles: