javascript_howto thread: Trapping window.onerror(msg,url,lno) messages like IE in Netscape6+
Hi,
i m newbie in this list.
well i would appreciate if any one of u can provide me any help or
suggestions.
well i would like to simulate the 3 messages what i get in IE using
window.onerror = a() for Netscape too.
ie
window.onerror = myOnError;
msgArray = new Array()
urlArray = new Array()
lnoArray = new Array()
function myOnError(msg, url, lno)
{
alert(" Message "+msg+ "\n URL "+url+ " \n Line No. "+lno);
msgArray[msgArray.length] = msg ;
urlArray[urlArray.length] = url ;
lnoArray[lnoArray.length] = lno ;
return true;
}
ie how can i get the same message in Netscape 6+ onwards
any suggestions plz..
i would appreciate if u can respond to this problm immediately.
Thanks in Advance .
Have a great time
Regards
Gautam Khanna
gautamkhanna27@y...
myOnError(msg, url, lno)