<!doctype html>
<html>
<head>
<title>Factorial of 25</TITLE>
</HEAD>
<body>
<h1> Factorial of 25 </h1>
<form name="f1">
<input type="submit" value="calculate Factorial" onClick="calc()">
</form>
</body>
<script language="Javascript">
function calc()
{
event.preventDefault();
var i,f=1;
for(i=1;i<=25;i++)
{
f=f*i;
}
alert("Factorial of number 25 is="+f);
}
</script>
</html>