<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
function meatball(x)
{
alert("I love " + x)
}
h = document.getElementById("hi");
</script>
<form>
<input type="text" id="hi">
<input type="button" id="ho" onclick="meatball(h)">
</form>
</body>
</html>

Find content
Male
