BetaDesigns( Blog ) Flex and Component Development

28Sep/090

Forcing the Browser to crash using ActionScript

I just discovered this little trick, I'm not sure how useful it is but it works.

Simply create a class that throws an error in the constructor. This will cause the browser to crash and close.

 
 
package
{
   public class BrowserCrasher
   {
      public function BrowserCrasher( )
      {
         throw new Error( 'goodbye browser' );
      }
   }
}
 
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.