Section 10.8. Questions


10.8. Questions

  1. What attributes are supported for all HTML elements?

  2. Using the HTML DOM when given a named element, how would you find its element type?

  3. Given a node in the CORE DOM, how would you find the element types of each of its children?

  4. How would you find out the IDs (identifiers) given all DIV elements in a page?

  5. Rather than use innerHTML, how would you go about replacing the header element with a paragraph in the following DIV:

  6. <div > <h1>This is a header</h1> </div>

Answers are provided in the appendix.




Learning JavaScript
Learning JavaScript, 2nd Edition
ISBN: 0596521871
EAN: 2147483647
Year: 2006
Pages: 151

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