answersLogoWhite

0

Here is the code:

<html>

<head>

<script type="text/javascript" langage="javascript">

function getHighest()

{

var a = parseInt(document.getElementById("num1").value);

var b = parseInt(document.getElementById("num2").value);

var c = parseInt(document.getElementById("num3").value);

if((a>b)&&(a>c))

{

alert(a+" is the highest number");

}

else if((b>a)&&(b>c))

{

alert(b+ " is the highest number");

}

else if((c>a)&&(c>b))

{

alert(c+ " is the highest number");

}

else

{

alert("One of them is not an int");

}

}

</script>

</head>

<body>

Input a: <input type="text" name="number1" id="num1" /><br />

Input b: <input type="text" name="number2" id="num2" /><br/>

Input c: <input type="text" name="number3" id="num3" /><br/>

Submit: <input type="submit" name="submit" value="submit" onclick="javascript:getHighest();return false;" />

</body>

</html>

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is used to create large program on internet?

Java script


What program code is the easiest to learn?

Most likely java script


Does a java script operator perform mathematical operation on 2 numbers?

some times


What is java fx2.1.1?

Java script


Is Java script needed for Poptropica?

No, Java script is not needed to play poptropica.


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


What Program that will display the even numbers in data structures and algorithms?

JAVA


Is there a program that will automatically translate script I'm looking for something that can show me the script on one side and the meaning of the script on the other side especially java?

That is called IDE (Integrated Development Environment). That is a standard tool to see the code-behind and the outcome. For JAVA there is netbeans &amp; eclipse which are popular &amp; free.


Does Java Script use the same compiler as Java?

No


How do you open java script?

You need to have some program that can open/run them on your computer. To save them, then run them, save them as a .Js files.


Where can I download java script free?

When it comes to java script you can simply download it free from the java website. You can also go to CNET downloads and get it free from there.


Does java script coding mean using it for Java programs only?

Java script coding is computer coding, many things require Java, and you need to have Java enabled to view these types of programs.


Does iPod touches have java script?

they have java&lt; javascript and flash


Which script based on sound?

Java script is based on sound.


Where is the best place to download java script free?

Java script is the name of a computer language. The Java website, http://www.java.com/en/download/index.jsp, is the best place to download Java software.


How do you compile and execute a java program which finds out the highest of any five numbers?

it will be destroyed.


Why java applet is executed faster than java script?

The java applet is in the java language and is run local to your computer, java script is in the language java script, this can be run local to server or computer. Java and java script are to different languages that run two different ways.


Do you have Java script installed on this computer?

No


Who is the implementor for java script?

ECMASCRIPT5


Why do you need java script to run internet content?

Most websites in present day heavily depend on Java Script and AJAX.