Il 0% ha trovato utile questo documento (0 voti)
10 visualizzazioni

CSS Assignment 3

vjfhtyemy

Caricato da

Ritu Patil
Copyright
© © All Rights Reserved
Formati disponibili
Scarica in formato PDF, TXT o leggi online su Scribd
Il 0% ha trovato utile questo documento (0 voti)
10 visualizzazioni

CSS Assignment 3

vjfhtyemy

Caricato da

Ritu Patil
Copyright
© © All Rights Reserved
Formati disponibili
Scarica in formato PDF, TXT o leggi online su Scribd
Sei sulla pagina 1/ 4

Sinhgad Technical Education Society’s

SOU. VENUTAI CHAVAN POLYTECHNIC


DEPARTMENT OF COMPUTER TECHNOLOGY

Course: Client Side Scripting (22519)


Year & Sem :3rd & 5I
Unit 3:Form and Event Handling
CO c: Create event based web forms using Java script

Assignment No: 3

1. Enlist and explain the use of any two Intrinsic JS functions. (2 marks)

2. Write a JS to design a form to accept values for users and passwords. (2 marks)

3. Write a HTML script which displays 2 radio buttons to the user for fruits and vegetables and 1
option list. When the user selects the fruit radio button option list should present only fruits
names to the user and when the user selects vegetables radio button option list should only
present vegetable names to the user. (6 marks)

4. Describe how to evaluate checkbox selection. Explain with a suitable example. (6 marks )

5. Explain the following form events: (2 marks)


I)Onmouseup
II)Onblur

6. Write a JS program to calculate add, sub, mul, div of two numbers [input from user]. Form
should contain two text boxes to input the number of four buttons for addition, subtraction,
multiplication and division. (4 marks)

7. Write a JS to create an option list containing a list of images and then display images in the
window as per selection. (6marks)

8. Write an HTML Script that displays text boxes for accepting Name, Middle Name, Surname
of the user and a Submit button. Write proper JS such that when the user clicks on Submit button

I) all textboxes must get disabled and change the colors to "RED and with respective labels.
II)Constructs the mail ID as <name>. <Surname) @msbte. com and display mail ID as message
[Ex If user enters Rajni as name and Pathak as Surname mail ID will be constructed
as [email protected])
9. Write HTML Script that displays drop down list Containing Options New Delhi, Mumbai,
Bangalore. Write proper JS such that when the user selects any options corresponding
description of about 20 words and image of the city appears in table which appears below on the
same page.
10. Enlist any four mouse events with their use.(2M) ( R )
11. Write HTML code to design a form that displays two textboxes for accepting
two numbers, one textbox for accepting result and two buttons as ADDITION
and SUBTRACTION. Write proper JavaScript such that when the user clicks
on any one of the button, respective operation will be performed on two
numbers and result will be displayed in result textbox.( 6M )( A )
12. Explain how to evaluate Radiobutton in JavaScript with suitable example. (6M)(A)

13.Write HTML script that displays textboxes for accepting username and password. Write
proper JavaScript such that when the user clicks on submit button (6M) (A)

i) All textboxes must get disabled and change the color to 'RED'.and with respective labels.

ii) Prompt the error message if the password is less than six characters.

14. Explain following form control/elements with example Button, Text, TextArea, Select
Checkbox, Form.

15.Give syntax ofand explain the use of small “with” clause (2M) (U)

16. Write an HTML script that accepts Amount, Rate of Interest and Period from user. When
user submits the information a JavaScript function must calculate and display simple interest in a
message box. (Use formula S.I. = PNR/100)

17.List and explain any six form events (6M ) (U)

18. Write a JavaScript that accepts user's first name and domain name of organization from user.
The JavaScript then forms email address as <firstname@domain name> and displays the results
in the browser window.
19. Write HTML and respective JavaScript such that
(i) Webpage displays three checkboxes as :

(ii) When a beverage is selected a dropdown list with options as below


appears on page :
(a) If “TEA” option is checked dropdown list contains

(b) If “COFFEE” option is selected dropdown list contains.

(c) If “SOFT DRINK” option is selected dropdown list contains

20. Write HTML script that will display dropdown list containing options such as Red, Green,
Blue & Yellow. Write a JavaScript program such that when the user selects any options. It will
change the background colour of webpage.

Potrebbero piacerti anche