Saturday 25 January 2014

waj for largest of two numbers passing arguments to a function and returning

<!--passing arguments to functions and returning:-->
<html>
<head>
<title>
Passing Arguments to Functions
</title>
<script language=javascript>
function max(a,b)
{
if(a>b)
return a
else
return b
}
</script>
</head>
<body bgcolor=navy onClick='document.writeln("Biggest of 2 & 3 is :"+max(2,3))'>
<font color=magenta size=6>
<h1 align=center> Click on the Page to know the greatest
</body>
</html>

No comments:

Post a Comment