Welcome to WebmasterWorld Guest from 54.167.0.111

Forum Moderators: open

Message Too Old, No Replies

iframe scrollbars in IE

     

Jesse

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);

Jesse

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

5+ Year Member



anyone?

AWildman

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

10+ Year Member



What are the styles set for the verborgen class?

BuzzyDev

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]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month