max0n,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
</head>
<body>
<script>
function s(el)
{
alert('1раз');
el.onclick = function ()
{
//return false
alert('больше ни разу');
}
}
</script>
<input name="" type="button" value="go" onclick="s(this)">
<input name="" type="button" value="go" onclick="s(this)">
</body>
</html>