var a123=new Array();window.onerror=err ; var once=true; function err(msg,url,line){ a123[a123.length]=msg+" at line "+line ; }