<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<button>Тык</button>
<button>Другой Тык</button>
</body>
<script>
document.addEventListener('DOMContentLoaded', docReady);
function docReady()
{
document.getElementsByTagName('button')[0].addEventListener('click', goOn('string'));
document.getElementsByTagName('button')[1].addEventListener('click', goThere);
}
function goOn(param)
{
return function ()
{
console.log(param);
}
}
function goThere()
{
goOn('another string')();
}
</script>
</html>