![]() |
|
|
+ Search |
![]()
|
Nov 15th, 2003 20:45
Jon Frost, http://svgfaq.com/JSGeneral.asp#4
Kevin Lindsey writes:
If your JavaScript is within the SVG document, then you'll need:
<svg>
<script><![CDATA[
// JavaScript code here
]]></script>
</svg>
If your JavaScript is external to the SVG document, then you'll need:
<svg>
<script xlink:href="YourJavaScriptFile.js"/>
</svg>