views:

700

answers:

1

How can I toggle an iframe's scrolling between on, off and auto in javascript? I tried changing the frame.scrolling attribute to "yes", "no" and "auto", but it doesn't have any effect.

+2  A: 

Try setting the CSS attributes instead (overflow-x and overflow-y, or just overflow).

Link: http://www.w3schools.com/Css/pr_pos_overflow.asp

Don Werve