try 
{ 
  //  Write your code here
} catch (e) 
{ 
  //  Write error handling code here
}






try {
            document.getElementById('aa').value = 'test value';
} catch (e) {
   alert(e);
}













throw '<Exception_Message>';








  try {
   alert('Before Throw');
   throw 'Error';
   alert('After Throw');
}
catch (e) {
            alert(e);
}





Posted By  -  Karan Gupta
 
Posted On  -  Thursday, July 19, 2012

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250