Yes.
<html>
<head>
<script>
function add(a, b)
{
alert(a + b);
}
function takingFunction(x, y, func)
{
func(x, y);
}
</script>
<head>
<body>
<form>
<input type="submit" value="Submit" onclick="javascript:takingFunction(2, 3, add)" />
</form>
</body>
</html>
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734