0% found this document useful (0 votes)
4 views

CSS 4-6 PYQ

The document outlines various topics related to JavaScript, including browser and cookie management, regular expressions, and web page protection techniques. It includes questions and tasks such as creating forms, validating user input, managing cookies, and implementing features like slideshows and pull-down menus. Additionally, it covers the use of JavaScript objects like window and navigator, along with their methods and properties.

Uploaded by

Dhanshri Londhe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

CSS 4-6 PYQ

The document outlines various topics related to JavaScript, including browser and cookie management, regular expressions, and web page protection techniques. It includes questions and tasks such as creating forms, validating user input, managing cookies, and implementing features like slideshows and pull-down menus. Additionally, it covers the use of JavaScript objects like window and navigator, along with their methods and properties.

Uploaded by

Dhanshri Londhe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

CSS Unit – 4

Browser And Cookies

1. State any two proper es and methods of loca on object.


2. Explain open () method of window object with syntax and example.
3. Describe, how to read cookie value and write a cookie value. Explain
with example
4. Differen ate between bession cookies and persistent cookies.
5. Write a javascript syntax to accessing elements of another child window.
6. Design 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 become value of the cookies. Write the
javascript func on for storing the cookies.
7. Write a javascript program to create read, update and delete cookies.
8. Write a javascript to open a new window and the new window is having
two frames. One frame containing buthon as “click here !”, and a er
clicking this bu on an image should open in the second frame of that
child window.
9. Explain how to create and read Persistent Cookies in JavaScript with
example
10.Write HTML code to design a form that displays two bu ons START and
STOP. Write a JavaScript code such that when user clicks on START
bu on, real me digital clock will be displayed on screen. When user
clicks on STOP bu on, clock will stop displaying me. (Use Timer
methods)
11.Give syntax of and explain the use of small “with” clause.
12.Write a JavaScript that accepts user’s first name and domain name of
organiza on from user. The JavaScript then forms email address as and
displays the results in the browser window.
13.State what is a cookie ? Explain its need. State characteris cs of
persistent cookies.
14.List and state various proper es of a window object. Write a JavaScript
that opens a new popup window with message “WELCOME To
SCRIPTING” when the page loads and a new popup window displaying
message “FUN WITH SCRIPTING” when the page unloads
15.Give syntax of and explain the use of SetTime Out( ) func on with the
help of suitable example.
CSS unit – 5

Regular Expression, Rollovers and Frames

1) Describe regular expression. Explain search () method used in


regular expression with suitable example.
2) Explain text rollover with suitable example.
3) Write a Java script that displays textboxes for accep ng name &
email ID & a submit bu on. Write Java script code such that
when the user clicks on submit bu on (1) Name Valida on (2)
Email ID valida on
4)

5) State what is regular expression. Explain its meaning with the


help of a suitable example.
6) Write a javascript program to validate email ID of the user
using regular expression.
7) Write a javascript program to design HTML page with books
informa on in tabular format, use rollovers to display the
discount informa on.
8) Write a javascript to open a new window and the new window
is having two frames. One frame containing buthon as “click
here !”, and a er clicking this bu on an image should open in
the second frame of that child window.
9) Explain test() and exec() method of Regular Expression object
with example.
10) Explain text and image rollover with suitable example

11)

12)Write a JavaScript that accepts a string and searches for the


pa ern “MSBTE” in the given string using regular expressions. If
the pa ern is found, JavaScript will display that “Pa ern is found”
else display “Pa ern is not found”.
13) Form regular expressions for following : (i) Valida on of email
address. (ii) Valida on of adhaar card. Format is dddd – dddd –
dddd (iii) Valida on of phone number. Format is (ddd) –
(dddddddd)

14)

15) Write HTML code to design a form that displays textboxes for
accep ng UserID and Aadhar No. and a SUBMIT bu on. UserID
should contain 10 alphanumeric characters and must start with
Capital Le er. 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 bu on.
CSS UNIT – 6

Menus ,Naviga on and Web Page Protec on

1. List ways of protec ng your web page and describe any


one of them.
2. Create a slideshow with the group of three images, also
simulate next and previous transi on between slides in
your Java script.

3. Write a Javascript to create a pull – down menu with


three op ons [Google, MSBTE, Yahoo] once the user will
select one of the op ons then user will be redirected to
that site.
4. Explain frame works of javascript and its applica on.
5. Write a javascript program to create a silde show with the
group of six images, also simulate the next and previous
transi on between slides in your javascript.
6. Write a JavaScript to create a pull – down menu with four
op ons [AICTE, DTE, MSBTE, GOOGLE]. Once the user will
select one of the op ons then user will be redirected to
that site.
7. What is Status bar and how to display moving message on
the status line of a window using JavaScript ?
8. Explain how to create and display Rota ng Banner in
JavaScript with example.
9. State any four proper es of Navigator object.
10. Write a JavaScript that sets a crawling status bar message
to the webpage. Message is “Welcome to the Mys c World
of JavaScript”. The message must start crawling when the
webpage gets loaded.
11. State the use of hiding the JavaScript. Explain the
steps needed to accomplish it and describe the process.
12. ) Describe the “navigator” object of JavaScript.
Describe the methods of navigator object which is used
to display browser name and version.

You might also like