Ive been picking up javascript little by little after ignoring it for a while but as of recently ive been taking an interested in using it to improve my site.

I noticed a lot of functionally with the getElementById line and was wondering if i can use this to set a destination to a link that exists on many pages .
Sort of a link with the id contact and the javascript assigning an href value to everything with this id.

Not sure if this was the right way to go about it though.