Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

125
Vistas
Notification alert if word is found more than two times

I want to generate a notification if the word 'TEST' appears in the webpage anymore than 2 times. I have this code for alerting whenever the word is found , but am unable to frame the code where the alert is announced if the word appears for more than 2 times. Please help me with this. Thank you in advance

if (/TEST/i.test (document.body.innerHTML) )
{
    alert ("Word found!");
}

EDIT This code worked

var str = "TEST"; if (str.split("TEST").length > 2)
 {    alert("Word Found")
 }
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda