Professional Documents
Culture Documents
A
PROJECT REPORT ON
“ Creating webpage with checkbox “
UNDER THE GUIDANCE OF
“Mrs.S.R.Salokhe”
……………………of Institute, Dr. D. Y. Patil Polytechnic (Code: 0539) has completed the
Micro Project satisfactorily in Subject - …...CSS........ (22519) for the academic year 2022-
The success & find outcome of this project required a lot of guidance &
assistance from many people and I am extremely privileged to have got all
along the completion of our project. All that we have done is only due to such
supervision & assistance & I would not forget to thanks them.
Date:
Place: Kolhapur.
INDEX
1 Introduction
2 Aim Of Project
3 Course Outcomes
4 Literature Review
7 Conclusion
Introduction
Course Outcomes
1. Created event-based web forms using JavaScript
2. Implemented Arrays and functions in JavaScript.
Literature Review
Form elements [Radio Buttons (India, U.S, China), Select] are used to
create web page. When we trigger form events (onclick, onselect) which
we have to mention in the element’s attribute. Events responds according
to code return in them. After execution of function we can see the change
in the option list. Form elements (Radio buttons, Buttons) are used to call
the function. An after performing task on form elements function gets called
& user can see the change in the option list.
Actual Methodology Used
We focused on the materials we needed, as well as the instructions
and sorted it out in a manner which will expedite different
responsibilities of the team members.
Gathered information about Arrays, Functions, & form elements and why
they are used.
Developed a code to generate a dynamically changing option list.
Tested the code.
Checked for any further changes to be done in the project.
Output of the program
Conclusion
function c(a)
<html>
<head>
<title>css</title>
<script>
function c(a)
{
with(document.forms.f1)
{
if(a =="Country1")
{
Cities[0].text="Delhi"
Cities[0].value=1
Cities[1].text="Mumbai"
Cities[1].value=2
Cities[2].text="Pune"
Cities[2].value=3
Cities[3].text="Kochi"
Cities[3].value=4
Cities[4].text="Manipur"
Cities[4].value=5
}
if(a =="Country2")
{
Cities[0].text="New York"
Cities[0].value=1
Cities[1].text="San Francisco"
Cities[1].value=2
Cities[2].text="Chicago"
Cities[2].value=3
Cities[3].text="Washington, D.C"
Cities[3].value=4
Cities[4].text="Philadelphia"
Cities[4].value=5
}
if(a =="Country3")
{
Cities[0].text="Beijing"
Cities[0].value=1
Cities[1].text="Shanghai"
Cities[1].value=2
Cities[2].text="Shenzhen"
Cities[2].value=3
Cities[3].text="Wuhan"
Cities[3].value=4
Cities[4].text="Chongqing"
Cities[4].value=5
}
}
}
</script>
</head>
<body>
<form name="f1">
<input type="radio" name="r1" value="Country1"
onclick="c(this.value)">India
<input type="radio" name="r1" value="Country2"
onclick="c(this.value)">US
<input type="radio" name="r1" value="Country3"
onclick="c(this.value)">China<br><br>
Reference
https://www.stackoverflow.com
https://www.javatpoint.com