HTML DOM Head 객체
Head 객체
Head 객체는 HTML <head> 요소를 대표합니다。
Head 객체 접근
getElementById()를 사용하여 <head> 요소에 접근할 수 있습니다:
var x = document.getElementsByTagName("HEAD")[0];
Head 객체 생성
document.createElement() 메서드를 사용하여 <head> 요소를 생성할 수 있습니다:
var x = document.createElement("HEAD");