Document (rozszerzenie)#
document.head#
Właściwość head zwraca pierwszy element head, który jest dzieckiem elementu html. Jeśli nie będzie elementu head zwrócona zostanie wartość null. Właściwość jest tylko do odczytu.
Prosty przykład:
<script>
document.write(document.head); // [object HTMLHeadElement]
</script>Właściwość head pojawia się dopiero w specyfikacji HTML5.
Interfejs Web IDL#
readonly attribute HTMLHeadElement? head;
Specyfikacje i inne materiały#
Pasek społecznościowy