Welcome to WebmasterWorld Guest from 54.197.116.116

Forum Moderators: open

Message Too Old, No Replies

iframe scrollbars in IE

   
6:59 am on Sep 24, 2008 (gmt 0)

5+ Year Member



Hello all,

I'm a relatively new scripter and this is my first post. Please forgive possible ignorance

I'm trying to create an iframe without scrollbars with javascript (see code below). It works great in Firefox but scrollbars keep appearing in IE.

Does anyone know a solution to this that works in IE?

tnx a lot

code:

ifrm = document.createElement("IFRAME");
ifrm.src="example.htm";
ifrm.style.width = 280+"px";
ifrm.style.height = 180+"px";
ifrm.style.border = "0px";
ifrm.style.overflow="hidden";
ifrm.className = "verborgen";
document.body.appendChild(ifrm);

11:33 am on Sep 24, 2008 (gmt 0)

5+ Year Member



anyone?
12:14 pm on Sep 24, 2008 (gmt 0)

10+ Year Member



What are the styles set for the verborgen class?
9:35 pm on Sep 25, 2008 (gmt 0)

5+ Year Member



Try the following
ifrm.scrolling="no";

David

[edited by: engine at 10:36 am (utc) on Sep. 26, 2008]
[edit reason] no sigs, thanks, see WebmasterWorld TOS Agreement [/edit]