window

L’oggetto window rappresenta la radice nella gerarchia DOM.
Si riferisce alla finestra del browser e contiene proprietà semplici, oggetti (anche complessi) e metodi.

Proprietà semplici

  • closed
  • defaultStatus
  • innerHeight
  • innerWidth
  • length
  • location
  • name
  • outerHeight
  • outerWidth
  • pageXOffset
  • pageYOffset
  • status
  • statusbar
  • screenX
  • screenY
  • screenLeft
  • screenTop
  • toolbar

Oggetti

  • opener
  • parent
  • self
  • top
  • window
  • document
  • frames
  • history
  • screen

Metodi

  • alert()
  • confirm()
  • prompt()
  • blur()
  • focus()
  • stop()
  • close()
  • find()
  • print()
  • home()
  • open()
  • moveBy()
  • moveTo()
  • resizeBy()
  • resizeTo()
  • scrollBy()
  • scrollTo()
  • setInterval()
  • setTimeout()
  • clearInterval()
  • clearTimeout()

Eventi

  • onblur
  • onfocus
  • onload
  • onunload
  • onerror
  • onresize
Notice: This work is licensed under a BY-NC-SA. Permalink: window

Comments are closed.