Try Catch in Javascript???????

Sabarimahesh
Posted by Sabarimahesh under JavaScript category on | Points: 40 | Views : 1291
var Text="";
function Alert()
{
try
{
alert("Welcome To Dotnetfunda!");
}
catch(err)
{
Text="404 Error\n\n";
Text+="Error description: " + err.message + "\n\n";
Text+="Clik Yes \n\n";
alert(Text);
}

Comments or Responses

Login to post response