Saturday, January 8, 2011

Not enough arguments [nsIDOMWindowInternal.alert]

<html>
<head>
 <script type="text/javascript">
  function callfn()
  {
   alert();
  }
 </script>
</head>
<body onload="javascript:callfn()">
</body>
</html>

This will give error somewhat similar to

uncaught exception: [Exception... "Not enough arguments [nsIDOMWindowInternal.alert]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://rae.us.playstation.com/raeus/ps3/index.htm :: :: line 810" data: no]


Please note that this error appears specifically in Firefox. (Not sure about other browsers).

Source : http://www.sitepoint.com/forums/showthread.php?t=182241

2 comments:

  1. that is what i am trying to show by this post.

    avoid blank alerts as it would be difficult to fix the error by looking at error message

    ReplyDelete