求问,Mozilla下如何动态赋值给onclick事件?
如题,函数如下,运行在页面的onload事件 
 IE下正常,但是Mozilla下无效,无报错,查了资料说两个浏览器对onclick事件的命名不同,但是没找到头绪 
 var   As=   document.getElementsByTagName( "A ")   
 for(var   i=0;i <As.length;i++) 
 { 
 	if(As[i].href!= " "&&As[i].parentNode.getAttribute( "colspan ")== "1 ") 
 	{ 
 		As[i].onclick=   function(){ 
 				   WinOpen(As[i].href) 
 				   return   false 
 				   } 
 	} 
 }   
 function   WinOpen(url){ 
 window.open(url, "new ") 
 return   false; 
 }
------解决方案--------------------function handleEvent(aEvent){  
  // if aEvent is null, means the Internet Explorer event model,  
   // so get window.event.  
  var myEvent = aEvent ? aEvent : window.event;  
 }      
 function onPageLoad(){  
  document.getElementById( "myDiv ").onclick = handleEvent;  
 }    
  </script>   
------解决方案--------------------(function(i){ 
 return function () { 
 	WinOpen(As[i].href) 
 	return false; 
 }; 
 })(i)
------解决方案--------------------真的能运行吗?? 
 感觉程序都是错的 
------解决方案--------------------顺便 As[i].href =  "# "  
 这样看看