Welcome to WebmasterWorld Guest from 54.146.201.80

Forum Moderators: open

Message Too Old, No Replies

iframe scrollbars in IE

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

New User

5+ Year Member

joined:Sept 24, 2008
posts:7
votes: 0


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 Sept 24, 2008 (gmt 0)

New User

5+ Year Member

joined:Sept 24, 2008
posts:7
votes: 0


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

Preferred Member

10+ Year Member

joined:Apr 22, 2003
posts: 441
votes: 0


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

New User

5+ Year Member

joined:Sept 23, 2008
posts:6
votes: 0


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]

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members