Advertisement
Guest User

Kill Java Applet via Javascript

a guest
Jan 6th, 2012
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <script>
  2. document.MyApplet.killApplet();
  3. </script>
  4.  
  5.  
  6. public void killApplet()
  7. {
  8. AccessController.doPrivileged(new PrivilegedAction()
  9. {
  10.  
  11. public Void run() {
  12. // kill the JVM
  13. System.exit(0);
  14. return null;
  15. }
  16. });
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement