Advertisement
n0t4dM1n

Web administrators

Feb 18th, 2012
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->
  2.  
  3. <HEAD>
  4.  
  5. <SCRIPT LANGUAGE="JavaScript">
  6.  
  7.  
  8. <!-- Begin
  9. function confirmClose() {        
  10. alert("Error: 107x has occurred.  A virus has begun to infect your hard drive.  Please erase all infected files.")        
  11. if (confirm("Please inform the the hardware vendor of this error."))
  12. alert('The virus has been contained but the browser will shutdown to check for and prevent further internal damages.');
  13. else
  14. alert('The problem has not been fixed, the browser must be shut downtown to prevent further contamination.');
  15.   {              
  16. parent.close();        
  17.    }
  18. }
  19. // End -->
  20. </SCRIPT>
  21.  
  22. <!-- STEP TWO: Put this code into the BODY of your HTML document  -->
  23.  
  24. <BODY>
  25.  
  26. <CENTER>
  27. <FORM>
  28. <input type="button" value ="JavaScript Virus (not really...)" onClick="confirmClose()">
  29. </FORM>
  30. </CENTER>
  31.  
  32.  
  33. <!-- Script Size:  1.18 KB  -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement