Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

132
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!