Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views

HTML Programs Javascript

The document contains two HTML files. The first file calculates the area of a circle based on a user-provided radius, while the second file uses an if statement to determine job eligibility based on the user's age. Both files utilize JavaScript for user interaction and output results directly on the web page or through alerts.

Uploaded by

rohanmhetre93
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

HTML Programs Javascript

The document contains two HTML files. The first file calculates the area of a circle based on a user-provided radius, while the second file uses an if statement to determine job eligibility based on the user's age. Both files utilize JavaScript for user interaction and output results directly on the web page or through alerts.

Uploaded by

rohanmhetre93
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

name_30.

html

<!DOCTYPE html>
<html>
<head>
<title>000</title>

</head>
<body bgcolor="yellow">
<h1>calculating the area with radius</h1>
<script type="text/javascript">
var r,area;
r = prompt("Enter the radius of the circle");

area = 3.14 * r * r
document.write("<h1> The radius is :"+r+"</h1>")
document.write("<h1> The area is :"+area+"</h1>")
</script>
</body>
</html>
2_name_30.html
<!DOCTYPE html>
<html>
<head>
<title>
decision making
</title>
</head>

<body>
<h1>if statement</h1>

<script type="text/javascript">
var age ;
age = prompt("Enter your age");

if(age >= 18 && age <=30)


{
alert("you are apllicable for the JOB")
}
else
{
alert("you are not apllicable for the JOB")
}
</script>
</body>
</html>

You might also like