Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Simulates a click on a scroll-bar component.
Syntax
object .doScroll( [ sScrollAction ] )Parameters
sScrollAction | Optional. String that specifies how the object scrolls, using one of the following values:
|
Return Value
No return value.
Remarks
Cascading Style Sheets (CSS) allow you to scroll on all objects through the overflow property.
When the content of an element changes and causes scroll bars to display, the doScroll method might not work correctly immediately following the content update. When this happens, you can use the setTimeout method to enable the browser to recognize the dynamic changes that affect scrolling.
Examples
This example uses the doScroll method to scroll down when a button is clicked.
<HEAD>
This example uses the doScroll method to scroll down a text area in one-second intervals.
<HEAD>
Standards Information
There is no public standard that applies to this method.
Applies To
|
BODY , CUSTOM , DIV , SPAN , TEXTAREA |
Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |