Hello,

I am trying to add onlick events to some links on my page and I am having trouble figuring out how to add the return false so the href url is not followed. Here is my code:
Code:
function init() {
		'use strict'
		connectLink.onclick = openConnect;
		reviewsLink.onclick = openReviews;
		attractionsLink.onclick = openAttractions;
		aboutLInk.onclick = openAbout;
		toptenLink.onclick = openTopten;
		return false;
	}
	
if (window.addEventListener) { // W3C
		window.addEventListener('load', init, false);
	}else if (window.attachEvent) { // Older IE
		window.attachEvent('onload', init);
	}
I cant seem to figure out what I am doing wrong and where return false should go so it is functional. I do not want to use inline Javascript as I know that is not professional looking code.