Posted in All Posts, Semester 2

Sem 2 – DHTML & XML Unit 2 Programs

DHTML & XML – DYNAMIC HTML & XML

Unit 2 – Related to JavaScript

1. Write a JavaScript to display hello world.
Download | View Code

2. Write a JavaScript program that display the use of multiline comments.
Download | View Code

3. Write JavaScript to demonstrate the use of different dialogue boxes. For example: Write messages like good morning, good bye etc, show them as alert, take value from prompt and confirmation for any operation.
Download | View Code

4. Write a JavaScript program to calculate area of circle.(3.14*r*r).
Download | View Code

5. Write a JavaScript program to convert Celsius to Fahrenheit ((x*1.8)+32).
Download | View Code

6. Write a JavaScript program to find factorial of a number.
Download | View Code

7. Write a JavaScript program to find square and cube of number using function.
Download | View Code

8. Write a JavaScript program to calculate multiplication table.
Download | View Code

9. Write a JavaScript program to calculate simple Interest (p*r*n/100).
Download | View Code

10. Write a JavaScript program to find prime number.
Download | View Code

11. Write a JavaScript program to validate a form which consists of name, Age, address, email id, hobby (checkbox), gender(radio button) and country (dropdown).
Download | View Code

12. Create one form in which username must be 10 characters long, last name must be 5 characters long, validate email address and also validate for nonempty (fields must not be blank) fields.
Download | View Code

13. Create JavaScript program which have list of color in dropdown menu, user can select any color from dropdown menu and that color will set to the background of document.
Download | View Code

14. Create a JavaScript program to create a mathematical calculator with the functionality +, *, -, /.
Download | View Code

15. Write a JavaScript program which displays an alert message on MouseOver Event of an Image.
Download Program | View Code
Download Image

16. Write a JavaScript program to change text from Uppercase to Lowercase.
Download | View Code

17. Write JavaScript program for following :
¤ Display a clock using Date object.
¤ Sort N integer using Array object.
¤ Convert Celsius to Fahrenheit using math object.
¤ Display no of form of an image using document object.
¤ Display Key name on a key pressed using Event object
Download (zip with 2 images) | View Code

18. Write a JavaScript code which return today’s date including date and time.
Download | View Code

19. Write JavaScript code to display happy new year in status bar.
Download | View Code

Download All

We hope that you found this article to be helpful.
Please share your thoughts in the Comments Section.

If you liked this article, then please like our Facebook page.

Suggested Reading

Comment your thoughts

This site uses Akismet to reduce spam. Learn how your comment data is processed.