Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/02/2007, 10:46
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Re: buscar texto en un div

Hola Alkalinux

Prueba con esto:

Código:
txt = document.getElementById('idDelDiv').innerHTML;
if (txt.indexOf('texto') != -1) alert ('encontrado');
Saludos,