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

css pr_list

Uploaded by

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

css pr_list

Uploaded by

Rushi Lokare
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1) Write a JavaScript program, with form having one textbox and two buttons- “Set cookie “,

“Read cookie”. Create a cookie of entered name in textbox on “Set cookie” button click and
read and display in document the cookie when user clicks on “Read cookie” button.

2) Write a JavaScript program to open a window having,


Height = 500, width = 300, top = 55, left = 75, and then retrieve and display any 4
properties of the window.

3) Write a JavaScript program to create a content of webpage in a newly opened window.

4) Write a JavaScript program to have a banner- using array of images to rotate the images
after 1 second interval using setinterval() method.

5) Write a JavaScript program to, with anchor links to page1 and page2 and buttons as- back
and next. Use different methods of history object to navigate through history of browser.

6) Write a JavaScript program using Regular Expression methods.

1. Test 2. Search 3. Match 4. Replace

7) Write a JavaScript program using Regular expression to validate simple form having 2
textboxes- Name should not be empty and Mobile no should be exact 10 digits display
respective alert.

8) Write a JavaScript program to, take one text field and button is submit to click on button
then display email validation.

9) Write a JavaScript program with following frame structure to show respective web pages,
(note: set different background colors to different web pages )

Doc1.html
Doc2.html Doc3.html
Doc4.html

10) Write a JavaScript program with image control to Change the images on mouse hover and
mouse is out (Rollover and Rollback).
11) Write a JavaScript program having, a webpage containing table, image control and three
buttons namely Mango, Apple, Orange when you hover over each buttons respective
image as mango.jpg, Apple .jpg and orange.jpg will be loaded into image control.

Mango

Image control Apple

Orange

12) Write a JavaScript program to print 1 to 20 numbers in a text area after specified interval
using setinterval() method.

13) Write a JavaScript program with, three text fields as- no1, no2 and result, enter the value
in first two text fields and click on “addition” button to get the result in third text field.

14) Write a JavaScript program take, two radio buttons- fruits and vegetables and one drop
down list when you select fruits then the list must show fruits element & if vegetables the
list must show vegetable elements.

15) Write a JavaScript program to protect webpage by disabling the right mouse button on
webpage.

16) WRITE A JAVASCRIPT PROGRAM, with different functions to alert welcome & goodbye;
welcome ( ) fun should execute on webpage is load into browser & goodbye ( ) fun should
be called on exit from browser.

17) Write a JavaScript program to illustrate different methods of location object.

18) WRITE A JAVASCRIPT PROGRAM TO ,


1. Initialize array of 10 element with random string value & sort in ascending order and
2. Search particular element present in an array or not.
3. Reserve the array.
19) WRITE A JAVASCRIPT PROGRAM TO, initialize array of 5 elements & do following.
1. Add elements to array.
2. Concat all elements.
3. Pop the element.
4. Add element to start.

20) Write a JavaScript program to, Take five checkboxes namely Apple, Banana, Mango,
orange, Papaya and take one button when you click on button then show the selected
checkbox values in textbox / paragraph.

21) Write a JavaScript program to, Take two text fields change the text color and background
color of text field to pink and green respectively on getting focus on text field and change
the text color and background color of text field to white and black on focus out.

22) Write a JavaScript program to, Take a textarea and a button, when you click on button
make the textarea “read only”.

23) Write a JavaScript program with a drop down list of fruits ,on selecting any option a alert
box must display a message “You have selected :- fruit_name”

24) Write a JavaScript program to accept Adhaar card as input texts. When the user enters adhaar
card number as NNNN-NNNN-NNNN the JavaScript validates card number and displays
whether card number is valid or not.

You might also like