scroll | onscroll event

Fires when the user repositions the scroll box in the scroll bar on the object.

Syntax

HTML Attribute <element onscroll = "handler(event)">
Event Property object.onscroll = handler;
attachEvent Method object.attachEvent("onscroll", handler)
addEventListener Method object.addEventListener("scroll", handler, useCapture)

 

Event information

SynchronousNo
BubblesNo
CancelableNo

 

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Standards information

There are no standards that apply here.

Remarks

Use the componentFromPoint and doScroll methods to control the scroll bar components.

Cascading style sheets (CSS) enable scrolling on all objects through the overflow property. These objects are not listed in the Applies To list for this event.

Scrolls the contents of an object until new portions of the object become visible.

To invoke this event, do one of the following:

  • Click and drag the scroll box with the mouse.
  • Click the scroll arrow.
  • Click the scroll bar.
  • Invoke the doScroll method.
  • Press the HOME or END key
  • Press the SPACEBAR key.
  • Press the PAGE UP or PAGE DOWN key.
  • Press the ARROW UP or ARROW DOWN key until scrolling occurs.

The pEvtObj parameter is required for the following interfaces:

See also

a
abbr
acronym
address
applet
area
b
bdo
big
blockQuote
body
button
canvas
caption
center
cite
code
custom
dd
del
dfn
dir
div
dl
document
dt
em
embed
fieldSet
font
form
frame
frameSet
hn
hr
html
i
iframe
img
input type=button
input type=checkbox
input type=email
input type=file
input type=image
input type=number
input type=password
input type=radio
input type=range
input type=reset
input type=search
input type=submit
input type=tel
input type=text
input type=url
ins
isIndex
kbd
label
legend
li
listing
map
marquee
media
menu
object
ol
p
plainText
pre
q
rt
ruby
s
samp
select
small
span
strike
strong
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
tr
tt
u
ul
var
window
xmp
onmousewheel

 

 

Show:
© 2014 Microsoft