In a new window, print all the properties of the navigator object.


Write a script that will display the name of your browser, the version, and the operating system you are using. (Use the parseInt() function to print just the version number.)


Does your browser support Shockwave Flash? Write a JavaScript program to show whether the plug-in is installed.


Create two links, one to open a new window and one to close it. The new window will display this message in a big font: The eye is the window to your soul. The new window will be positioned in the left-hand corner of your screen, will be resizable, have a scrollbar, and it will have the focus.


Create an HTML document that contains four frames (i.e., four panes in a window, as in Figure 10.21). Each frame will display a different image. In another window, use JavaScript to display the number of frames in the original window and the name of the original window.


Create a program that produces a page containing frames. The first frame will span across the top of the page and contain a centered heading entitled, A Virtual Zoo . A second frame will be used as a navigation bar at the left-hand side of the screen. It will contain links to five animals. When the user presses a link, an image of that animal will appear in a frame of its own to the right side of the navigation bar.


In an alert dialog box, display the pixel height, width, and color depth of your screen. Each value will be separated by a newline.


Create a program that will create a digital clock in the status bar. Use the setInterval() method to update the status bar once every minute with the current time.

JavaScript by Example
JavaScript by Example (2nd Edition)
ISBN: 0137054890
EAN: 2147483647
Year: 2003
Pages: 150
Authors: Ellie Quigley

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net