웹표준,웹접근성(html, html5, css, css3, javascript, jQuery, jQueryMobile, snecha, senchaTouch, php, mobileWebApp)

window 객체 본문

javascript/브라우져객체모델

window 객체

jokack01 2015. 3. 30. 15:14

window 객체

브라우져 기반 자바스크립트의 최상위 객체

 

ex) window 객체의 속성과 메서드 출력

var output = '';  // 변수 선언

for(var key in window){

// output 변수에 속성을 대입연산

output += key + ';' + window[key] + '\n'; 

}

console.log(output); // 출력

위와 같이 무수히 많은 속성과 메서드를 가지고 있다. 



'javascript > 브라우져객체모델' 카테고리의 다른 글

location 객체  (0) 2015.04.06
screen 객체  (0) 2015.04.06
window 객체 기본메서드  (0) 2015.04.02
window 객체 타이머 메서드  (0) 2015.04.01
새 window 객체 생성  (0) 2015.03.30