• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Quiz

To test your knowledge of JavaScript's uses in improving Web pages, answer the following questions.

Questions

1:In the navigation script, what does document.navform.category.selectedIndex refer to?
  1. The number of the currently selected option

  2. The text of the currently selected option

  3. An index to another document

A1: a. This refers to the number of the currently selected index.
2:When creating rollovers, which HTML tag should include the onMouseOver event handler?
  1. <a>

  2. <img>

  3. <moose>

A2: a. The event handler should be included with the link tag, <a>. Internet Explorer and Netscape 6 support event handlers in the <img> tag, but earlier versions of Netscape do not.
3:What's wrong with using the onMouseOver="window.status='test';" event handler for a link?
  1. It should include a better description of the link

  2. It doesn't return a value of true

  3. It should read onMouseOut

A3: b. The event handler should return a value of true to prevent the status line from being erased.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint