Scrolling an Iframe

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
mbaroz
Forum Commoner
Posts: 29
Joined: Sun Feb 05, 2006 10:10 am

Scrolling an Iframe

Post by mbaroz »

Hi
I have a chat script that runs within an Iframe .
I want to scroll to the bottom of the page each time a new line is entered to the iframe.
how do i use a correct , cross browser scrollBy to solve this issue ?
Thanks
Moshe
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I wouldn't use scrollBy, but scrollIntoView.

check out the script I wrote here: viewtopic.php?t=37059
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

i use scrollIntoView(false)

works perfectly
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply