0% found this document useful (0 votes)
3 views

pr_8_css

The document outlines a practical exercise to develop a basic webpage using JavaScript intrinsic functions for calculating the sum of two numbers. It includes the HTML structure, form elements for input, and a JavaScript function to perform the calculation and display the result. The conclusion notes the successful implementation of the intrinsic function in the exercise.

Uploaded by

manav2007kuril
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

pr_8_css

The document outlines a practical exercise to develop a basic webpage using JavaScript intrinsic functions for calculating the sum of two numbers. It includes the HTML structure, form elements for input, and a JavaScript function to perform the calculation and display the result. The conclusion notes the successful implementation of the intrinsic function in the exercise.

Uploaded by

manav2007kuril
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Practical No.

Aim :- Develop a webpage using java intrinsic function .

Program :-

<html>
<head>
<title>Client-Side Intrinsic Function</title>
</head>
<body>
<h1>Basic Calculation Webpage</h1>
<p>Enter two numbers to calculate their sum:</p>
<form>
Number 1 : <input type="number" id="number1"><br><br>
Number 2 : <input type="number" id="number2"><br><br>
<input type="button" value="Calculate" onclick="calculateSum()">
</form>
<p id="result"></p>

<script>
function calculateSum() {
var num1 = document.getElementById("number1").value;
var num2 = document.getElementById("number2").value;
var sum = parseInt(num1) + parseInt(num2);
document.getElementById("result").textContent = "Sum: " + sum;
}
</script>
</body>
</html>
Output : -

Conclusion :-

In this practical I successfully implements the Intransic function .

Marks Obtained Dated signature


of Teacher

Process Product Total (25)


Related (15) Related (10)

You might also like