PDA

View Full Version : Is there a way to control (I)Frames scrollbar from JS/DHTML



leo42
03-02-2006, 07:53 PM
Hi,


I'd like to know is it is possible to control (i)frame scrollbar position using JS/DHTML. This way I could make a custom scrollbar (iirc there's no way to define custom scrollbars, except by changing colors)...

If so, how ?

Thanks in advance,
Leo.

Twey
03-02-2006, 08:00 PM
Yes; the method you're looking for is frame.scrollTo(xPos, yPos).

leo42
03-03-2006, 01:55 AM
Yes; the method you're looking for is frame.scrollTo(xPos, yPos).
Thanks ! :)

Btw, is there a way to know the size of the data containing within a frame ?
(ie: not the size of the frame itself)

Leo.