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

CSS Assignment 3&4

The document contains 7 assignments related to JavaScript methods and functions. The assignments cover prompts, confirms, windows objects, regular expressions, form validation, frame creation, timing events, dropdown menus, and mouse events. Students are asked to write code to demonstrate various JavaScript concepts.

Uploaded by

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

CSS Assignment 3&4

The document contains 7 assignments related to JavaScript methods and functions. The assignments cover prompts, confirms, windows objects, regular expressions, form validation, frame creation, timing events, dropdown menus, and mouse events. Students are asked to write code to demonstrate various JavaScript concepts.

Uploaded by

ethicalninja7
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment no 3

1 Explain prompt()method and confirm() method of


JavaScript with syntax and example.
2 Explain open() method of window object with syntax
& example.
3 State what is a regular expression? explain Its
meaning with the help of a suitable example.
4 Write a webpage that accept Username and
adharcard as input texts when the user enters
adharcard number, The JavaScript Validates card
number and display wheather Card number is valid
or not. ( assume Valid adhar card format to be
nnnn .nnnn. nnnn or nnnn-nnnn -nnnn)
5 Write a script for creating following frame structure

Fruits, Flowers & cities are links to the webpage


fruits html, nowers.htm), cities html respectively When
this links are clicked corresponding data appears in
“FRAMEA3”.

6 Describe regular expression. Explain search() method


used in regular expression with suitable example.
7 Explain text rollover with suitable example.

Assignment No. 4
1. Write the syntax of and explain use of following methods of
JavaScript Timing event.
A]setTimeout()
B] setInterval()
2. List ways of protecting your webpage and describe any one of
them.
3. Write HTML script that displays dropdownlist containing options
New Delhi, mumbai Bangle torte proper javascript such that
when the user selects any options corresponding description of
about 20 words & image of the city appear in table which appear
below on the same Page
4. Develop a JS program to create rotating Banner Ads with URL
links
5. Create a slideshow with the group of 4 image also simulate the
next f previous transition between glides in your java script.
6. Write a JavaScript to modify the status bar using on mouseover
and on mouseout with links. When the user moves his mouse
over the link, It will display “MSBTE” in the status bas. When the
user moves his mouse away from the link the status bar will
display nothing
7. 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.

You might also like