<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 ::
Please note that this error appears specifically in Firefox. (Not sure about other browsers).
Source : http://www.sitepoint.com/forums/showthread.php?t=182241
try alert('');
ReplyDeletethat is what i am trying to show by this post.
ReplyDeleteavoid blank alerts as it would be difficult to fix the error by looking at error message