6
edits
| Line 29: | Line 29: | ||
} | } | ||
== | == inter-document scripting == | ||
When calling a JavaScript function that resides in the HTML file, from an SVG file that is embedded in an HTML document, one should use 'parent.functionname();' to reference such a function. The Adobe SVG viewer plugin allows the use of functionname(), but 'parent.functionname()' also works, so in this case using 'parent.functionname()' is preferred. | When calling a JavaScript function that resides in the HTML file, from an SVG file that is embedded in an HTML document, one should use 'parent.functionname();' to reference such a function. The Adobe SVG viewer plugin allows the use of functionname(), but 'parent.functionname()' also works, so in this case using 'parent.functionname()' is preferred. | ||
edits