I have been trying to modify the attributes of an iframe using javascript in the following way:
var iFrame = window.top.document.getElementById('window_content');
iFrame.setAttribute("height","63");
iFrame.setAttribute("scrolling","no");
iFrame.style.overflow="hidden";
iFrame.style.height = "63px";
The size changes as intended, but unfortunately the scrollbar remains visible. Is there a way to make it disappear? The generated html code looks correct:
<iframe width="650" height="63" frameborder="0" scrolling="no" src="http://www.google.com/" id="window_content" name="window_content" style="overflow: hidden; height: 63px; width: 650px;"> </iframe>
I'm puzzled by why the scrolling attribute is not being recognized. Any insights on this?