Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

139
Visualizações
IFrame scrolling attribute set from onload event working differently on IE11 and edge/chrome

I am setting attribute "scrolling" from onload event and it is working differently in IE11 and Edge

<head>
<script>
function myFunction() {
  document.getElementById("myFrame").scrolling = "no";  
}
</script>
</head>
<body onload="myFunction()">
<iframe id="myFrame" src="http://example.com/"></iframe>
</body>

This stops scrolling in Edge but not in IE11, when I open this on edge of IE emulation mode, there also scrolling is happening. Strangely other attributes like height and width work fine in both edge and IE11. What could be the problem here?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

As far as I know, the attribute scrolling is aleady deprecated, if you have to use this attribute in iframe, you can add it in html code manually instead of adding it dynamically through javascript.

Something like this:

<iframe id="myFrame" src="http://example.com/" scrolling="no"></iframe>

In addition, IE will end support soon. So I recommend that you focus more on modern browsers such as Microsoft Edge, Chrome instead of IE.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda