Scusami, errore mio.
Dovresti aggiungere un id al link e richiamare lo stesso id in document.getElementById