<html>
<head>
<script>
function clickme(str)
{
console.log(str);
}
</script>
</head>
<body>
<a onclick="return clickme('click ' 20');" href="#">Click</a>
</body>
</html>
<html>
<head>
<script>
function clickme(str)
{
document.getElementById("div-id").innerHTML = str;
}
</script>
</head>
<body>
<div id="div-id"></div>
<br/>
<a onclick="return clickme('click ' 20');" href="#">Click</a>
</body>
</html>