QB
QB
**List any three properties of regular expression objects and state their use.
Write a JavaScript that accepts a string and searches for the pattern “MSBTE” in the given string
using regular expressions. If the pattern is found, JavaScript will display that “Pattern is found”
else display “Pattern is not found”.
Explain test() and exec() method of Regular Expression object with example
Write a script for creating following frame structure :
Frame 1 contains three buttons SPORT, MUSIC and DANCE that will
perform following action :
When user clicks SPORT button, sport.html webpage will appear in Frame 2.
When user clicks MUSIC button,music.html webpage will appear in Frame 3.
When user clicks DANCE button,dance.html webpage will appear in Frame 4.
FRAME 1
SPORT MUSIC DANCE
FRAME 2 FRAME 3 FRAME 4
Write a javascript to open a new window and the new window is having two frames. One frame
containing buthon as “click here !”, and after clicking this button an image should open in the
second frame of that child window.
Write a javascript to create option list containing list of images and then display images in new
window as per selection.
Write a javascript program to design HTML page with books information in tabular format, use
rollovers to display the discount information.
**Write a Java script 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 bar.
When the user moves his mouse away from the link the status bar will display nothing.
**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.
Write a JavaScript that sets a crawling status bar message to the webpage. Message is
“Welcome to the Mystic World of JavaScript”. The message must start crawling when the
webpage gets loaded.
**Explain how to create and display Rotating Banner in JavaScript with example.
**List ways of protecting your web page and describe any one of them.
What is Status bar and how to display moving message on the status line of a window using
JavaScript ?