Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/02/2011, 22:27
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años
Puntos: 834
Respuesta: Problema con eventos en iframe firefox

Ahora sí te entiendo. Al parecer en modo de diseño Firefox tiene problemas con los eventos. A mi me sucede lo mismo con esto:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title>Documento sin título</title>
<
script type="text/javascript">
function 
t(){
    var 
i=document.createElement('iframe'),ex;
    
i.width=i.height=500;
    
ex=i.onload=function(){
        var 
doc=this.contentWindow.document || this.contentDocument;
        
doc.designMode='on';
        try{
doc.body.focus();}catch(e){}//hack explorer
        
doc.execCommand("InsertImage",false,'http://t1.gstatic.com/images?q=tbn:ANd9GcRSZCAIXjjpBR8zJb6xwCimZ7J814ra2rHMcQv_aZgNmCAOHy3F&t=1'); 
        
doc.onmousedown=function(){alert(123);}
    }
    if(
window.ActiveXObject){
        
i.onreadystatechange=function(){
            if(
i.readyState=='complete'){
                 
ex.call(this);
             }
        }
    }
    
document.body.appendChild(i);
}
onload=t;
</script>

</head>

<body>
</body>
</html> 
Habrá que estudiarlo un poco