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

100
Vistas
Javascript function that checks if a page is contained inside an iframe

I have two pages sem_menu.html and sem_menu2.html with the same headers, when sem_menu2 is contained and inserted in an iframe I hide the header of it so only the header of the sem_menu is displayed.

What I want to do is create a function that if sem_menu2 is contained in an iframe having the hidden header must write me in the sem_menu header while if it is not contained in an iframe then it is opened as a normal page it must write in its own header then of sem_menu 2.

if (window.parent.frames.length > 0) {
        alert(sessionStorage.sem_applicazione);
    } else {
        alert('no!')
    }

For now I have only this, can someone help me?

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