HTMLCollection (1) 썸네일형 리스트형 웹브라우저 자바스크립트_6 DOM-2 (HTML Elements, HTMLCollection, jQuery 객체) 6. DOM window에 로드된 문서를 제어하기 위한 object model 6.4 HTML Elements getElements * 로 얻은 객체가 무엇인지 정확히 알아야 적절한 method나 property를 사용할 수 있다. constructor method를 이용해서 객체에 대한 정보를 얻을 수 있다. (e.g., countructor.name: 선택한 객체의 유형명) var li = document.getElementById('active'); console.log(li.constructor.name); // => HTMLLIElement var lis = document.getElementsByTagName('li'); console.log(lis.constructor.name); // =>.. 이전 1 다음