So we have a page:
First Link Second Link&
or you can use .bind
function message_me(m_text){ alert(m_text); } second.addEventListener('click', message_me.bind(this, 'shazam'));
check MDN Documentation about 'closures'