Need understanding of getElementById

mbay

Registered
Hello Everyone!!!

I was looking on the internet for better understanding of the following:

[document.getElementById(hello).offsetTop]

What is the purpose of "OffsetTop"?

Anyone with any info or links to help are welcomed.


Thank you in advance,

mbay
 
Hi 3mors!!!!

thanks for your reply and the link - they are greatly appreciated.

I was studying the link you displayed.

If I did not want to have offsetTop, is there a way to remove it or have the value to "0"? I tried removing the word "offsetTop" but then the javascript code no longer functioned.

Thanks for any help and advise in advance,

mbay
 
Back
Top