W
Wolfing
I have a piece of jscript that used to work fine, but seems to be
problematic in IE7:
I have an iframe that I want to turn scrolling off. The section of
code is:
....
iframeElement = document.getElementById ("frameItems");
....
iframeElement.style.width = frameWidth + 'px';
iframeElement.setAttribute('scrolling','off');
//alert('test');
....
The thing is, when I run it the first time, the scrollbars are not
removed. When I run it the second time and on, it does remove the
scrollbars.
If I uncomment the alert, it does remove it (i.e. without the alert it
doesn't, with the alert it does ???)
Anything I'm missing?
problematic in IE7:
I have an iframe that I want to turn scrolling off. The section of
code is:
....
iframeElement = document.getElementById ("frameItems");
....
iframeElement.style.width = frameWidth + 'px';
iframeElement.setAttribute('scrolling','off');
//alert('test');
....
The thing is, when I run it the first time, the scrollbars are not
removed. When I run it the second time and on, it does remove the
scrollbars.
If I uncomment the alert, it does remove it (i.e. without the alert it
doesn't, with the alert it does ???)
Anything I'm missing?