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

160
Vistas
Can't get the dynamic height right for embedded iframe

I am working on a WordPress website and want to embed an iframe from an external reservation/booking tool.

My issue: I can't make the height of the iframe dynamic. A fixed height of the iframe won't be a good solution in this case.

URL I want to embed https://w1.roomsoftware.com/de/markus-raab

Elementor Custom HTML widget:

<iframe src="https://w1.roomsoftware.com/de/markus-raab" id="booking"></iframe>

<script>
// Selecting the iframe element
var iframe = document.getElementById("booking");

// Adjusting the iframe height onload event
iframe.onload = function(){
    iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
}

Any idea what could be the reason that this does not work?

Screenshot shows the scrollbar of the embedded iframe

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