0% found this document useful (0 votes)
37 views5 pages

Common HTML Eve-WPS Office

The document lists common HTML events and their descriptions. Some events include onclick, which occurs when a user clicks an HTML element, onmouseover when the user moves the mouse over an element, and onload which occurs when the browser finishes loading the page. HTML events allow JavaScript to register different event handlers on elements in an HTML document. Events are normally used in combination with functions, and the function will not be executed before the event occurs.

Uploaded by

Kaleem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views5 pages

Common HTML Eve-WPS Office

The document lists common HTML events and their descriptions. Some events include onclick, which occurs when a user clicks an HTML element, onmouseover when the user moves the mouse over an element, and onload which occurs when the browser finishes loading the page. HTML events allow JavaScript to register different event handlers on elements in an HTML document. Events are normally used in combination with functions, and the function will not be executed before the event occurs.

Uploaded by

Kaleem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

CommonHTMLEvent

s
Her
eisal
istofsomecommonHTMLev
ent
s:

Event Descr
ipt
ion

Onchange An HTML el
ement has been

changed

Oncl
i
ck Theusercl
icksanHTMLel
ement

Onmouseov
er Theusermov
est
hemouseov
eran

HTMLel
ement

Onmouseout Theusermov
est
hemouseaway

f
rom anHTMLel
ement

Onkey
down Theuserpushesakey
boar
dkey

Onl
oad The br
owserhas f
ini
shed l
oadi
ng

t
hepage

HTMLDOM ev
ent
sal
l
ow Jav
aScr
iptt
oregi
sterdi
ff
erentev
ent

handl
ersonel
ement
sinanHTMLdocument
.

Ev
ent
sar
enor
mal
l
yusedi
ncombi
nat
ionwi
thf
unct
ions,andt
he

f
unct
ionwi
l
lnotbeexecut
edbef
oret
heev
entoccur
s(suchas

whenausercl
i
cksabut
ton)
.
Event Descr
ipt
ion Bel
ongst
o

Abor
t Theev
entoccur
swhent
he Ui
Event
,Ev
ent

l
oadi
ngofamedi
aisabor
ted

Af
ter
pri
nt Theev
entoccur
swhenapagehas Ev
ent

st
art
edpr
int
ing,
ori
fthepr
int

di
alogueboxhasbeencl
osed

Ani
mat
ionend Theev
entoccur
swhenaCSS Ani
mat
ionEv
ent

ani
mat
ionhascompl
eted

Ani
mat
ioni
ter
ati
on Theev
entoccur
swhenaCSS Ani
mat
ionEv
ent

ani
mat
ioni
srepeat
ed

Ani
mat
ionst
art Theev
entoccur
swhenaCSS Ani
mat
ionEv
ent

ani
mat
ionhasst
art
ed

Bef
orepr
int Theev
entoccur
swhenapagei
s Ev
ent

aboutt
obepr
int
ed

Bef
oreunl
oad Theev
entoccur
sbef
oret
he Ui
Event
,Ev
ent

documenti
saboutt
obeunl
oaded

Bl
ur Theev
entoccur
swhenan FocusEv
ent

el
ementl
osesf
ocus

Canpl
ay Theev
entoccur
swhent
he Ev
ent

br
owsercanst
artpl
ayi
ngt
he

medi
a(wheni
thasbuf
fer
ed

enought
obegi
n)
Canpl
ayt
hrough Theev
entoccur
swhent
he Ev
ent

br
owsercanpl
ayt
hrought
he

medi
awi
thoutst
oppi
ngf
or

buf
fer
ing

Change Theev
entoccur
swhent
he Ev
ent

cont
entofaf
orm el
ement
,the

sel
ect
ion,
ort
hecheckedst
ate

hav
echanged(
for<i
nput
>,

<sel
ect
>,and<t
ext
area>)

Cl
ick Theev
entoccur
swhent
heuser MouseEv
ent

cl
i
cksonanel
ement

Cont
ext
menu Theev
entoccur
swhent
heuser MouseEv
ent

r
ight
-cl
i
cksonanel
ementt
oopen

acont
extmenu

Copy Theev
entoccur
swhent
heuser Cl
ipboar
dEv
ent

copi
est
hecont
entofanel
ement

Cut Theev
entoccur
swhent
heuser Cl
ipboar
dEv
ent

cut
sthecont
entofanel
ement

Dbl
cli
ck Theev
entoccur
swhent
heuser MouseEv
ent

doubl
e-cl
i
cksonanel
ement

Dr
ag Theev
entoccur
swhenan Dr
agEv
ent

el
ementi
sbei
ngdr
agged
dr
agend Theev
entoccur
swhent
heuser Dr
agEv
ent

hasf
ini
sheddr
aggi
nganel
ement

dr
agent
er Theev
entoccur
swhent
he Dr
agEv
ent

dr
aggedel
ementent
erst
hedr
op

t
arget

dr
agl
eav
e Theev
entoccur
swhent
he Dr
agEv
ent

dr
aggedel
ementl
eav
est
hedr
op

t
arget

dr
agov
er Theev
entoccur
swhent
he Dr
agEv
ent

dr
aggedel
ementi
sov
ert
hedr
op

t
arget

dr
agst
art Theev
entoccur
swhent
heuser Dr
agEv
ent

st
art
stodr
aganel
ement

dr
op Theev
entoccur
swhent
he Dr
agEv
ent

dr
aggedel
ementi
sdr
oppedon

t
hedr
opt
arget

dur
ati
onchange Theev
entoccur
swhent
he Ev
ent

dur
ati
onoft
hemedi
aischanged

ended Theev
entoccur
swhent
hemedi
a Ev
ent

hasr
eacht
heend(
usef
ulf
or

messagesl
i
ke"
thanksf
or

l
i
steni
ng"
)

You might also like