EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

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;
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.

See also

a
abbr
address
area
b
bdo
blockQuote
body
button
canvas
caption
cite
code
custom
dd
del
dfn
div
dl
document
dt
em
embed
fieldSet
form
frame
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
kbd
label
legend
li
map
media
menu
object
ol
p
pre
q
rt
ruby
s
samp
select
small
span
strong
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
tr
u
ul
var
window
onmousewheel

 

 

Mostrar:
© 2014 Microsoft. Todos os direitos reservados.