homepage Welcome to WebmasterWorld Guest from 54.211.113.223
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
iframe scrollbars in IE
Jesse

5+ Year Member



 
Msg#: 3750996 posted 6:59 am on Sep 24, 2008 (gmt 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);

 

Jesse

5+ Year Member



 
Msg#: 3750996 posted 11:33 am on Sep 24, 2008 (gmt 0)

anyone?

AWildman

10+ Year Member



 
Msg#: 3750996 posted 12:14 pm on Sep 24, 2008 (gmt 0)

What are the styles set for the verborgen class?

BuzzyDev

5+ Year Member



 
Msg#: 3750996 posted 9:35 pm on Sep 25, 2008 (gmt 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]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved