Ver Mensaje Individual
  #17 (permalink)  
Antiguo 10/05/2013, 07:22
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: TRUCASO para capturar este innerHTML: <!-- <div id="fin">datos y + datos..

Y, por las dudas, la forma de capturar el o los que quieras mediante un índice:
Código PHP:
<!DOCTYPE html
<
html
<
head
<
meta charset="utf-8" /> 
<
title></title
<!-- 
hola -->
<
script type="text/javascript"
function 
htmlTree(obj,s){ 
    var 
=|| []; 
    if (
obj.hasChildNodes()) { 
      var 
child obj.firstChild
      while (
child) { 
          if (
child.nodeType === 8) { 
               
r.push(child.nodeValue ); 
          } 
        if (
child.nodeType === 1) { 
         
r.concathtmlTree(child,r)); 
        } 
        
child child.nextSibling
      } 
    } 
    
    return 
r
  } 
  
    
onload=function(){alert(htmlTree(document.documentElement.parentNode)[2]);}; 
</script> 
</head> 

<body> 
<!-- chau --> 

</body> 
</html>
<!-- uf! -->