目前客户端javascript中大量的工作就是处理浏览器,用户触发的各种事件,下面是webkit中这些事件的集合,有一些时常见的,标准规定的,
而另一些则是webkit自己扩展,自定义的,比如beforeloadEvent,这个事件可以说是专门为广告过滤做准备的,像copy,cut,paste事件,可以直观看出其用意,但是这些却都非w3c所规定的标准事件,也不一定为其他浏览器支持(至少ie不支持),但是却非常有用
后续会不断介绍,这些事件,
- abort
- beforecopy
- beforecut
- beforeload
- beforepaste
- beforeunload
- blur
- cached
- change
- checking
- click
- close
- connect
- contextmenu
- copy
- cut
- dblclick
- display
- downloading
- drag
- dragend
- dragenter
- dragleave
- dragover
- dragstart
- drop
- error
- focus
- hashchange
- input
- invalid
- keydown
- keypress
- keyup
- load
- loadstart
- message
- mousedown
- mousemove
- mouseout
- mouseover
- mouseup
- mousewheel
- noupdate
- obsolete
- offline
- online
- open
- overflowchanged
- pagehide
- pageshow
- paste
- readystatechange
- reset
- resize
- scroll
- search
- select
- selectstart
- storage
- submit
- textInput
- unload
- updateready
- zoom
- DOMActivate
- DOMAttrModified
- DOMCharacterDataModified
- DOMFocusIn
- DOMFocusOut
- DOMNodeInserted
- DOMNodeInsertedIntoDocument
- DOMNodeRemoved
- DOMNodeRemovedFromDocument
- DOMSubtreeModified
- DOMContentLoaded
- webkitBeforeTextInserted
- webkitEditableContentChanged
- canplay
- canplaythrough
- durationchange
- emptied
- ended
- loadeddata
- loadedmetadata
- pause
- play
- playing
- ratechange
- seeked
- seeking
- timeupdate
- volumechange
- waiting
- progress
- stalled
- suspend
- webkitAnimationEnd
- webkitAnimationStart
- webkitAnimationIteration
- webkitTransitionEnd
- orientationchange