전역변수 window
- 기본객체이기 때문에 window. 생략 가능
- browser가 열릴때마다 생성되는 객체
- document, history, location, navigator, screen 등을 포함
methods
- alert()
- prompt()
- blur() 창에서 포커스 제거
- close() 종료창
- confirm()
- focus() # 현재 창에 포커스
- moveBy(), moveTo()
- postMessage() # 다른창으로 메시지 전달
- print() # 인쇄
- scroll(), scrollBy(), scrollTo()
- setCursor()
- showModalDialog() #모달창 표시
- sizeToContent()
- stop() # 로딩중지
- getComputedStyle()
events
properties
- document
- frameElement
- innerHeight, innerWidth
- localStorage, sessionStorage
- location
- name
- outerHeight, outerWidth
- pageXOffset, pageYOffset
- parent
- screenX, screenY
- scrollX, scrollY
history
methods
pushState(state,title,location)
replaceState()
popState()
navigator
- navigator.language : en-US
References