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

The script Element

All SVG scripting code is related to a script element. Typically, the script element will, when used, have no namespace prefix on the element type name to distinguish it from the HTML/XHTML script element. However, although the script elements have a similar function, they are from two different markup languages, and their syntax is not identical.

The SVG script element has a type attribute. Typical examples of the type attribute include "text/javascript" or "text/ecmascript".


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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