O'Reilly logo

Prototype and Scriptaculous: Taking the Pain out of JavaScript by Chris Angus

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required