Programming Exercise on CSS UNIT-III
1. Design the following Form and modify the style of the paragraph text through JavaScript code.
JavaScript is a Client Side Scripting Language. It is used
to create interactive website.
Change Style
Clicking on the button the font, font size, and color of the paragraph text should be changed.
2. Design the following Form and Write a JavaScript function to get the Full name .
First Name:
Middle Name:
Last Name:
Submit
Clicking on Submit Button Full Name should be displayed on the page.
3. Design the following Form and Write a JavaScript program to set the background color of a
paragraph.
Government Polytechnic Jalgaon
Department of Information Technology
Change the paragraph Background Color
Clicking on Button Output should be like this
Government Polytechnic Jalgaon
Department of Information Technology
Change the paragraph Background Color
4. Design the following Form and Write a JavaScript program to perform following task.
Enter First Number:
Enter Second Number:
Result:
Addition Subtraction Multiplication Division
Display result according to the button clicked.
5. Design the following Form and Write a JavaScript program to perform following task.
Book Shop
Item Name Rate Quantity Amount
Pen
Pencil
Notebook
Calculator
Total Bill :
Calculate Bill
On clicking button amount for each item and total bill should be displayed.(Take Rate field Read
Only with some fix value)
6. Design the following Form and Write a JavaScript program to perform following task.
7. Design the following Form and Write a JavaScript program to perform following task.
Remove selected items from a dropdown list.
8. Design the following Form and Write a JavaScript program to perform following task.
Gender : Male Female
Age : Below 18 Yr.
Above 18 Yr.but Below 21Yr.
Above 21 Yr.
Submit
Select gender and age and on clicking submit button display message in alert box as “valid age
for marrage” or “Invalid Age for Marriage”.
9. Design a form to display 5 college names in drop down list like GCOEJ,COEP,VJTI,MITP,VNIT.
and a Confirm Choice button .When button is clicked and COEP is selected display message
“Confirm My Choice COEP “ Otherwise Display message “Try Again in next Round”.