The HTML5 `document.head` DOM tree accessor

One of the lesser known HTML5 JavaScript goodies is the document.head DOM tree accessor, which is a more efficient (and easier to type) alternative to document.getElementsByTagName(‘head’)[0]. Native support for document.head is very easy to detect…


This content originally appeared on Mathias Bynens and was authored by Mathias

One of the lesser known HTML5 JavaScript goodies is the document.head DOM tree accessor, which is a more efficient (and easier to type) alternative to document.getElementsByTagName('head')[0]. Native support for document.head is very easy to detect…


This content originally appeared on Mathias Bynens and was authored by Mathias


Print Share Comment Cite Upload Translate Updates
APA

Mathias | Sciencx (2010-05-04T21:02:07+00:00) The HTML5 `document.head` DOM tree accessor. Retrieved from https://www.scien.cx/2010/05/04/the-html5-document-head-dom-tree-accessor/

MLA
" » The HTML5 `document.head` DOM tree accessor." Mathias | Sciencx - Tuesday May 4, 2010, https://www.scien.cx/2010/05/04/the-html5-document-head-dom-tree-accessor/
HARVARD
Mathias | Sciencx Tuesday May 4, 2010 » The HTML5 `document.head` DOM tree accessor., viewed ,<https://www.scien.cx/2010/05/04/the-html5-document-head-dom-tree-accessor/>
VANCOUVER
Mathias | Sciencx - » The HTML5 `document.head` DOM tree accessor. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2010/05/04/the-html5-document-head-dom-tree-accessor/
CHICAGO
" » The HTML5 `document.head` DOM tree accessor." Mathias | Sciencx - Accessed . https://www.scien.cx/2010/05/04/the-html5-document-head-dom-tree-accessor/
IEEE
" » The HTML5 `document.head` DOM tree accessor." Mathias | Sciencx [Online]. Available: https://www.scien.cx/2010/05/04/the-html5-document-head-dom-tree-accessor/. [Accessed: ]
rf:citation
» The HTML5 `document.head` DOM tree accessor | Mathias | Sciencx | https://www.scien.cx/2010/05/04/the-html5-document-head-dom-tree-accessor/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.