• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Scripting SVG > Manipulating the DOM

Manipulating the DOM

For changing the DOM, you have to know quite well which functions are offered as per the W3C DOM Level 2 specification, a specification SVG quite exactly implements. In this section, we will present the different methods, and this time, you will see several examples. So, fasten your seatbelts.

Getting to the Top

In this section, we will provide some ways to access the different elements of an SVG document and some ways to change these elements. However, a basic problem is knowing where to start. First, we must have some way to access the basic SVG document because this element also offers (via interface) several methods we need throughout the rest of this chapter. So, the first question is, How do we get to this top-level document?


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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