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.23. Element members (Prototype)

Member Type
                           addClassName
                        
Function(Element or id::string,className::string) -> undefined
                           classNames
                        
Function(Element or id::string)    -> Element.ClassNames
                           cleanWhitespace
                        
Function(Element or id::string) -> undefined
                           getDimensions
                        
Function(Element or id::string) -> Object
                           getHeight
                        
Function(Element or id::string) -> number
                           getStyle
                        
Function(Element or id::string,cssPropertyName::string) -> string
                           hasClassName
                        
Function(Element or id::string,className::string) -> Boolean
                           hide
                        
Function(Element or id::string,...,Element or id::string) -> undefined
                           makeClipping
                        
Function(Element or id::string) -> undefined
                           makePositioned
                        
Function(Element or id::string) -> undefined
                           remove
                        
Function(Element or id::string) -> undefined
                           removeClassName
                        
Function(Element or id::string,className::string) -> undefined
                           scrollTo
                        
Function(Element or id::string) -> undefined
                           setStyle
                        
Function(Element or id::string,cssProperties::Hash) -> string
                           show
                        
Function(Element or id::string,...,Element or id::string) -> undefined
                           toggle
                        
Function(Element or id::string,...,Element or id::string) -> undefined
                           undoClipping
                        
Function(Element or id::string) -> undefined
                           update
                        
Function(Element or id::string,html::string) -> undefined
                           visible
                        
Function(Element or id::string) -> boolean

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