0% found this document useful (0 votes)
41 views6 pages

Client Side Scripting 6 Marks Ultra V.IMP - Questions

Uploaded by

saqibzuber813
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views6 pages

Client Side Scripting 6 Marks Ultra V.IMP - Questions

Uploaded by

saqibzuber813
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Client Side Scripting

Ultra V.IMP Questions


6 Marks

1. Write an HTML script with radio buttons (fruits/vegetables) and


a dropdown list (color options like Red, Green, Blue, Yellow).
When the user selects the fruit or vegetable radio button,
display a list of corresponding items. Also, change the
background color of the webpage when the user selects a color
from the dropdown list.
2. Describe, how to read cookie value and write a cookie value.
Explain with example.
3. Write a JavaScript that displays textboxes for accepting name &
email ID & a submit button. Write JavaScript code such that
when the user clicks on submit button.
i) Name Validation
ii) Email ID Validation
4. Describe how to evaluate checkbox selection. Explain with
suitable example.
5. Write a script to create a webpage with frames. The first frame
should contain the second and third frames. The second frame
should have links (e.g., Chapter 1 and Chapter 2), and when
these links are clicked, the corresponding content (Ch1.html,
Ch2.html) should appear in the third frame.
eg.

6. Write a JavaScript to create a pull-down menu with three


options [Google, MSBTE, Yahoo] once the user will select one
of the options then user will be redirected to that site.
Page 1 of 6
7. Write a JavaScript to checks whether a passed string is
palindrome or not.
8. Develop JavaScript to convert the given character to Unicode
and vice-versa.
9. Write a JavaScript program to create a slide show with the
group of six images also simulate the next and previous
transition between slides in your JavaScript.
10. Write a JavaScript to open a new window and the new window
is having two frames. One frame containing button as “click
here!”, and after clicking this button an image should open in
the second frame of that child window.
11. Write a JavaScript to create option list containing list of
images and then display images in new window as per
selection.
12. Write a JavaScript function to generate Fibonacci series till
user defined limit.
13. Write HTML script that will display following structure Write
the JavaScript code for below operations:

(1) Name, Email & Pin Code should not be blank.


(2) Pin Code must contain 6 digits & it should not be accept any
characters.
14. Write a webpage that displays a form that contains an input for
user name and password. User is prompted to enter the input
user name and password and password becomes the value of
the cookie. Write the JavaScript function for storing the
cookies. It gets executed when the password changes.

Page 2 of 6
15. Develop a JavaScript program to create Rotating Banner Ads
with URL links.
16. Write a JavaScript for the folding tree menu.

17. 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.
18. Write HTML code to design a form that displays two buttons
START and STOP. Write a JavaScript code such that when user
clicks on START button, real time digital clock will be displayed
on screen. When user clicks on STOP button, clock will stop
displaying time. (Use Timer methods)
19. Write HTML code to design a form that displays textboxes for
accepting UserID and Aadhar No. and a SUBMIT button. UserID
should contain 10 alphanumeric characters and must start with
Capital Letter. Aadhar No. should contain 12 digits in the format
nnnn nnnn nnnn. Write JavaScript code to validate the UserID
and Aadhar No. when the user clicks on SUBMIT button.
20. Explain how to evaluate Radiobutton in JavaScript with
suitable example.
21. Write a script for creating following frame structure :
Frame 1 contains three buttons SPORT, MUSIC and DANCE that
will perform following action :
When user clicks SPORT button, sport.html webpage will
appear in Frame 2.
When user clicks MUSIC button,music.html webpage will
appear in Frame 3.
When user clicks DANCE button,dance.html webpage will

Page 3 of 6
appear in Frame 4.

22. Write a JavaScript that demonstrates use of floating menu


alongwith respective HTML script.
23. Form regular expressions for following :
(i) Validation of email address.
(ii) Validation of adhaar card. Format is dddd – dddd – dddd
(iii) Validation of phone number. Format is (ddd) – (dddddddd)
24. Write HTML and respective JavaScript such that
(i) Webpage displays three checkboxes as:

Page 4 of 6
(ii) When a beverage is selected a dropdown list with options as
below appears on page :

25. List and explain any six form events.


26. Write a JavaScript that sets a crawling status bar message to
the webpage. Message is “Welcome to the Mystic World of
JavaScript”.
27. (i) Design frameset tag for representing following layout :

(ii) List any three properties of regular expression objects and


state their use.
28. Write HTML script that displays textboxes for accepting
username and password. Write proper JavaScript such that
when the user clicks on submit button
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
29. Write a webpage that displays a form that contains an input for
students rollno and names user is prompted to enter the input

Page 5 of 6
student rollno and name and rollno becomes value of the
cookie.
30. Write a JavaScript to create rollover effect that involves text
and images. When the user places his or her mouse pointer
over a book title, the corresponding book images appears
31. Explain following form control / elements with example Button,
Text, TextArea, Select, Checkbox, Form.
32. Write a JavaScript for protecting web page by implementing
the following steps:
i) Hiding your source code
ii) Disabling the right MouseButton
iii) Hiding JavaScript

Page 6 of 6

You might also like