advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
 

Use JavaScript and the DOM to Create Dynamic Web Pages

The Document Object Model (DOM) gives you access to all the elements on a web page. Using JavaScript, you can create, modify and remove these elements in the page dynamically. 


 
advertisement
key to mastering the client side of rich Internet application (RIA) development is learning how to manipulate the Document Object Model (DOM). The DOM gives you access to all the elements on a web page. Inside the browser, the whole web page—paragraphs, forms, tables, etc.—is represented in an object hierarchy. Using JavaScript, you can create, modify, and remove elements in the page dynamically.

Chapter 10 of JavaScript for Programmers, excerpted here, introduces the DOM. Find out how to:

  • Use JavaScript and the W3C Document Object Model to create dynamic web pages.
  • Grasp the concepts of DOM nodes and DOM trees.
  • Traverse, edit, and modify elements in an XHTML document.
  • Change CSS styles dynamically.
  • Create JavaScript animations.

It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com.
Already a member?



advertisement