Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove scrollbars from an iframe using jquery?

Tags:

html

jquery

I have a page that I don't control the source to. It contains an iframe. The iframe has scrollbars and a border. I want to remove both. I tried using Jquery like this:

$('iframe').attr('scrolling', 'no');

Nothing I do will affect the iframes attributes at all.

Any ideas? (IE8)

like image 371
CraigF Avatar asked Nov 05 '22 10:11

CraigF


1 Answers

http://www.w3.org/TR/html4/present/frames.html#h-16.5

<iframe scrolling="no" frameborder="0">
like image 194
David Hellsing Avatar answered Nov 11 '22 03:11

David Hellsing