filmov
tv
How To Write A Simple Javascript Code To Add Two Numbers

Показать описание
Javascript Code To Add Two Numbers :
<html>
<head>
<title>
Addition of two numbers..
</title>
<script type ="text/javascript">
function addition()
{
}
</script>
</head>
<body>
First value : <input type="text" id="text1" name="txt1" value="0"><br>
Second value : <input type="text" id="text2" name="txt2" value="0"><br>
Sum of <text id ="t1"></text> and <text id ="t2"></text> is : <input type="text" id="text3" name="txt3" value="0"><br>
<input type ="button" id="b1" name ="submit" value ="Add" onclick="javascript:addition()">
</body>
</html>
----------------------------------------------------------------------------------------------
Thanks For Watching...
Please Do Subscribe, Like and Share...
Please do comment for any queries..
Use headphone or earphone for better hearing of audio..
Follow On :
<html>
<head>
<title>
Addition of two numbers..
</title>
<script type ="text/javascript">
function addition()
{
}
</script>
</head>
<body>
First value : <input type="text" id="text1" name="txt1" value="0"><br>
Second value : <input type="text" id="text2" name="txt2" value="0"><br>
Sum of <text id ="t1"></text> and <text id ="t2"></text> is : <input type="text" id="text3" name="txt3" value="0"><br>
<input type ="button" id="b1" name ="submit" value ="Add" onclick="javascript:addition()">
</body>
</html>
----------------------------------------------------------------------------------------------
Thanks For Watching...
Please Do Subscribe, Like and Share...
Please do comment for any queries..
Use headphone or earphone for better hearing of audio..
Follow On :