How can Javascript in the head access elements in the body?
<p>I often see some JavaScript libraries that are called in the head tag of an html page. However, if these libs call an element in the body tag, there'll be a response (still from the head tag). When I try to call an element from the head, there is no response - why? </p>

<p>Thanks in advance. :) </p>
