<!doctype html>
<html lang="en">
<head>
<title>Week 4 : Addition of numbers</title>
<script language="javascript">
// define function
function addnumbers() {
// to read data from textboxes
var n1=parseInt(document.getElementById('fnum').value);
var n2=parseInt(document.getElementById('snum').value);
var n3=parseInt(document.getElementById('tnum').value);
// to write data into textbox
document.getElementById('result').value = (n1 + n2 + n3);
}
</script>
</head>
<body>
<h2>Add Numbers</h2>
<label> First Number : </label> <input type="text" id="fnum"></input><br><br>
<label> Second Number : </label> <input type="text" id="snum"></input><br><br>
<label> Third Number : </label> <input type="text" id="tnum"></input><br><br>
<input type="button" value="Add Numbers" onclick="addnumbers()"></input><br><br>
<label> Result : </label> <input type="text" id="result"></input><br><br>
</body>
</html>
1) Write a html program for Creation of web site with forms, frames, links, tables etc View Solution
2) Design a web site using HTML and DHTML. Use Basic text Formatting, Images View Solution
3) Create a script that asks the user for a name, then greets the user with Hello and the user name on the page View Solution
4) Create a script that collects numbers from a page and then adds them up and prints them to a blank field on the page. View Solution
5) Create a script that prompts the user for a number and then counts from 1 to that number displaying only the odd numbers View Solution
6) Create a script that will check the field in Assignment 1 for data and alert the user if it is blank. This script should run from a button View Solution
7) Using CSS for creating web sites View Solution
8) Creating simple application to access data base using JDBC Formatting HTML with CSS View Solution
9) Program for manipulating Databases and SQL. View Solution
10) Program using PHP database functions View Solution
11) Write a web application that functions as a simple hand calculator, but also keeps a paper trail of all your previous work View Solution
12) Install Tomcat and use JSP and link it with any of the assignments above View Solution
13) Reading and Writing the files using PHP View Solution