JavaScript – Statements.
1. Create a Web Page that accepts any value using Text Box. Find the sum of Odd Digits and display the result.
a) Title of the Page : “Computation”
b) Heading
a. H1 : “Abacus Education Centre, Hyderabad”
b. H2 : “Sum of Odd Digits”
Output :
Assignment -3
JavaScript – Login Module – User Validation Code
1. Design a Login page in which you need to have UserName and Password.
a. UserName should be a TextField
b. Password should be a password type
c. Submit Button
On clicking Submit Button, javascript function need to be called. Function should display a message “Valid User” or “invalid User”.
Example :
Consider UserName is “admin” and password is “admin”. Display a message "Valid User", otherwise, Display a message "Invalid User". On directly clicking Submit Button without entering any details, Javascript must alert a message the “Username and Password cannot be Blank”
Output :
Assignment - 4
JavaScript – Student Registration Module – Display Registration Details.
1. Design a Registration page in which you need to have Student Details like Firstname, LastName, Age and Post Graduation they want to Join.
Display the Details of the Student as per below snapshot.
a. FirstName should be a TextField
b. LastName should be a TextField
c. Age should should be a TextField
d. Degree must be option Button
e. Submit should be Button
f. Heading
i. H1 : Student Registration
On click of the submit button, details entered must be displayed as summary below the submit button.
Output :
Assignment - 5
JavaScript – Event Handling – OnChange Event Implementation.
1. Design a Web page in which you select the type of Drinks. Whenever you select the type of Drink, Corresponding price has to be displayed in the Text box given in the form.
2. Design the form as per below specification
a. List Box to display types of drinks
b. Textbox to display Price of the Drink
c. Heading
i. H1 : Swastik Soft Drinks
ii. H2 : 215, Hosur Main Road, Kormangala, Bangalore
iii. H6 : Select Type of Drinks
Output :
Sample1:
Sample2:
Assignment - 6
Design the HTML page as given below .Write a JavaScript program to determine whether a given year is a leap year (Gregorian calendar).
On click of the button, check whether year is a leap year or not ,and display the result on the same page.
Output:
Get Free Quote!
328 Experts Online