Skip to content Skip to sidebar Skip to footer

Scrollbar Iframe In Javascript

I would like to add a scrollbar when the contents of the iframe is too large and does not appear. I am trying the following: parent.iframepage.style.height = '350px';

Solution 1:

Surely the correct syntax would be ...

parent.iframepage.style.overflow = "auto";

I'd recommend doing it in the stylesheet.

iframe
{
    overflow: auto;
}

You should qualify it better, with an ID, class or such.

Solution 2:

You can modify the content of the iframe only if it is from the same domain as the parent document.

Post a Comment for "Scrollbar Iframe In Javascript"