Image

Determine the coordinates of an element?

I am trying to figure out how to dynamically make a layer the full length of the actual HTML page. (Rather than the visible area or screen. I need to go below the scroll.)

I can't seem to find a function or method that reports the length of the actual page.

... And I just had an idea. Is it possible to determine the coordinates of an element on the page with Javascript? If so then I could put an element wiht an id at the bottom of the page look for to determine where the bottom of the screen is.