Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Trapping window.onerror(msg,url,lno) messages like IE in Netscape6+


Message #1 by gautamkhanna27@y... on Mon, 29 Jul 2002 07:05:04
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) 

  Return to Index