01-30-2010, 01:56 PM
Hello Everyone,
I am trying to getting error message box using javaScript.
But not getting desired result.
The code is :
Can anyone help me?
I am trying to getting error message box using javaScript.
But not getting desired result.
The code is :
Code:
<html>
<head>
<script type="text/javascript">
var txt="";
function message()
{
try
{
adddlert("Welcome guest!");
}
catch(err)
{
txt="Error.\n\n";
txt+="Error description: " + err.description + "\n\n";
txt+="OK to continue.\n\n";
alert();
}
}
</script>
</head>
<body>
<input type="button" value="View message" onclick="message()" />
</body>
</html>
Can anyone help me?