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

131
Vistas
window.find not working in iframe on webpage

I wrote a JavaScript code to find text on window using window.find. It works fine for the web pages but does not work inside IFRAME text ( i have to search the text on web page and IFRAME also). The purpose is to highlight searched text in blue background just like browsers search does.

Can anybody put me in the right direction what mistake I am making Below is my code

function searchText(str)
{
     window.find(str)
}
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can only access the contents of an iframe with JS if the content is from the same domain.

If it is -> $("#iFrame").contents().find()

about 4 years ago · Juan Pablo Isaza Denunciar
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