CSS Important Questions
CSS Important Questions
1. Design a webpage that displays a form that contains an input for username and password.
User is prompted to enter the input username and password and password become value of
the cookies. Write the JavaScript function for storing the cookies.
2. Write a JavaScript program to validate email ID of the user using regular expression.
3. List the attributes of Frame tag and explain any 2.
4. Explain text and image rollover with suitable example.
5. Write JavaScript that accepts users first name and domain name of organization from user.
The JavaScript then forms email address as <firstname@domain> name and displays the
results in the browser window.
6. List and state various properties of window object. Write javascript that opens a new popup
window with message “WELCOME To SCRIPTING” when page loads and a new popup
window displaying message “FUN WITH SCRIPTING” when the page unloads.
7. 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.
8. Differentiate between session cookies and persistent cookies.
9. Write the syntax for creating and deleting cookie in JavaScript.
10. Write a JavaScript syntax to accessing elements of another child window.
11. Write a JavaScript that demonstrates use of floating menu along with respective HTML script.
12. List the attributes of Frameset tag and explain any 2.
13. Write a JavaScript that accepts the string and searches for the pattern “MSBTE” in the given
string using regular expression. If the pattern is found JavaScript will display “Pattern is
found” else display “pattern is not found.”
14. 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
15. State the use of the following functions: i) clearTimeout() ii) setInterval()
16. List any four JavaScript frameworks.
17. Define regular expression with its modifiers.
18. Write a JavaScript function to check whether a given address is a valid IP address or not.
19. Write a JavaScript program that will create a pull-down menu with three options. Once the
user will select the one of the options then the user will redirected to that website.
20. Define regular expression with its metacharacters.
21. List Ways of protecting your web page and describe any one of them.
22. Design frameset tag for representing following layout:
Frame 1