Monday, March 02, 2009

Stupid JavaScript Tricks: LackOfSomethingToDoException

function getVitalInfoFromUser( ) {

  var up = "LackOfSomethingToDoException";

  // if user Cancels, exit ungracefully
  
  var userInput = prompt ( "Enter something:", "[here]" );

  if ( null == userInput || userInput.length == 0 )
     throw up; // puke and die

}

1 comment:

  1. Kanpur Matka !Kanpur Matka Day chart ! Kanpur Matka ! Kanpur Satta Chart ! kanpur Matka Result ! Kanpur Satta Result ! Dubai Matka Result ! Dubai Satta Matka ! Dubai Satta matka ! Dubai Matka Chart ! Kanpur Panel Chart !

    ReplyDelete

Add a comment. Registration required because trolls.