asp.net.ph

onscroll Event

DHTML Events


Occurs when a document view is scrolled.

Syntax


Inline HTML <element onscroll = "handler" ... > All platforms
Event property object.onscroll = handler ECMA-262 Language Specification
Named script <script FOR=object EVENT=onscroll> Internet Explorer® only

Remarks


Bubbles No
Cancels No
To invoke Begin scrolling in the object that has a scroll bar.
  • Click and drag the scroll box with the mouse.
  • Click the scroll arrow.
  • Click the scroll bar.
  • Invoke the doScroll method.
  • Press PAGE UP or PAGE DOWN.
  • Press the ARROW UP or ARROW DOWN until scrolling occurs.
Default action Scrolls the contents of an object until new portions of the object become visible.

A scroll event fires whenever the scroll box is repositioned in the scroll bar.

Programmatic control of scroll bar components is provided by the componentFromPoint and doScroll methods.

CSS enables scrolling on all objects through the overflow property. Such objects are not listed in the Applies To list for this event.

Event Object Properties

While event handlers in the Document Object Model do not receive parameters directly, the handler can query the event object for data.

Event Object Properties


Applies To

APPLET, BDO, BODY, DIV, EMBED, HTMLAREA, MAP, MARQUEE, OBJECT, SELECT, TABLE, TEXTAREA

See Also

componentFromPoint, doScroll




Contents
HTML Elements
HTML Element Attributes
CSS Attributes
DOM Objects
DOM Object Properties
DOM Events Reference
DOM Methods Reference
DOM Collections Reference
 

Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph