Apparently scrollIntoView() is an IE doing, but is also supported by Firefox & Opera.
But Konquerer and Safari do not recognize it, and my script fails to auto scroll to the bottom of a div layer.
Is there a workaround for this? Perhaps by determining the height and width of the div layer and doing something with focus()?
scrollintoview browser compatibility
Moderator: General Moderators
scrollintoview browser compatibility
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.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
HTMLElement.scrollIntoView() in indeed an Internet Explorer addition (IE4+) and was later added to some other browsers as noted.
window.scroll(), window.scrollBy() and window.scrollTo() are DOM supported. The former is Javascript 1.1 and was deprecated by Javascript 1.2 in favor of the latter two methods.
window.scroll(), window.scrollBy() and window.scrollTo() are DOM supported. The former is Javascript 1.1 and was deprecated by Javascript 1.2 in favor of the latter two methods.
hmm using window... would this mean I'd have to make it an IFrame to scroll to the bottom?
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.