<html>
<head>
<title> Bigest numbers</title>
</head>
<body>
<form>
Enter A value: <input type="text" id="a" name="a"><br>
Enter B value: <input type="text" id="b"><br>
Enter C value: <input type="text" id="c"><br>
<input type="submit" value="submit" onclick="return abc()">
</form>
<p id="Demo"></p>
<script>
function abc()
{
var num1=Number(document.getElementById("a")).value;
var num2=Number(document.getElementById("b")).value;
var num3=Number(document.getElementById("c")).value;
if(a<=b && b<=c)
{
document.getElementById("Demo").innerHTML =a;
}
else if(c<=a)
{
document.getElementById("Demo").innerHTML =b;
}
else
{
document.getElementById("Demo").innerHTML =c;
}
return false;
}
</script>
</body>
</html>