![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/02/2007, 10:46
|
![Avatar de JavierB](http://static.forosdelweb.com/customavatars/avatar16568_12.gif) | 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, |