5.26. Event members (Prototype)

Extends JavaScript::Event
Member Type
                           KEY_BACKSPACE
                        
number
                           KEY_TAB
                        
number
                           KEY_RETURN
                        
number
                           KEY_ESC
                        
number
                           KEY_LEFT
                        
number
                           KEY_UP
                        
number
                           KEY_RIGHT
                        
number
                           KEY_DOWN
                        
number
                           KEY_DELETE
                        
number
                           element
                        
Function(Event) -> Element
                           isLeftClick
                        
Function(Event) -> Boolean
                           pointerX
                        
Function(Event) -> number
                           pointerY
                        
Function(Event) -> number
                           stop
                        
Function(Event) -> undefined
                           findElement
                        
Function(Event,tagName::string) -> Element
                           observe
                        
Function(Object,evt::string,Function,capture::boolean) -> undefined
Function(string,evt::string,Function,capture::boolean) -> undefined
                           stopObserving
                        
Function(Object,evt::string,Function,capture::boolean) -> undefined
Function(string,evt::string,Function,capture::boolean) -> undefined

Get Prototype and Scriptaculous: Taking the Pain out of JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.