document.viewport

  • getDimensions
  • getHeight
  • getScrollOffsets
  • getWidth

API Docs

  • Utility Methods
  • Ajax
  • Array
  • Class
  • Date
  • Element
  • Element.Methods
  • Element.Methods.Simulated
  • Enumerable
  • Event
  • Form
  • Form.Element
  • Function
  • Hash
  • Insertion
  • Number
  • Object
  • ObjectRange
  • PeriodicalExecuter
  • Position
  • Prototype
  • String
  • Template
  • TimedObserver
  • document
  • document.viewport

getWidth
1.6.0

document.viewport.getWidth() -> Number

Returns the width of the viewport.

Equivalent to calling document.viewport.getDimensions().width.

© 2006-2007 Prototype Core Team | Licenses: MIT (source code) and CC BY-SA (documentation). mephisto-badge-tiny