Digiartists' Domain Community!
JavaScript Error !!! - Printable Version

+- Digiartists' Domain Community! (https://digiartistsdomain.org/phpboard)
+-- Forum: The Lobby (https://digiartistsdomain.org/phpboard/forumdisplay.php?fid=50)
+--- Forum: General Chat (https://digiartistsdomain.org/phpboard/forumdisplay.php?fid=2)
+---- Forum: Help! (https://digiartistsdomain.org/phpboard/forumdisplay.php?fid=42)
+---- Thread: JavaScript Error !!! (/showthread.php?tid=9294)



JavaScript Error !!! - sarienbarry - 01-30-2010

Hello Everyone,
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?


RE: JavaScript Error !!! - AetherRose - 01-31-2010

I thought you meant Dr Java...sad face.