Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
getSVGDocument
Collapse the table of content
Expand the table of content

getSVGDocument method

Gets Document object for the referenced document, or null if there is no document.

Scalable Vector Graphics: Document Structure, Section 5.11.13Internet Explorer 10

 

Syntax

object.getSVGDocument(retVal)

Parameters

retVal [out, retval]

Type: SVGDocument

Standards information

Examples

The following example shows how to obtain a reference to the SVG document loaded into an object element.



<!DOCTYPE html>
<html>
  <title>GetSVGDocument Example</title>
<head>

<script type="text/javascript">
  function getDocument() 
  {
    var svgDoc = document.getElementById("SVGDoc").getSVGDocument();
    alert( svgDoc );
  }
</script>

</head>
<body>

  <button onclick="getDocument();">Show SVG Document</button>
  <br />
  <object id="SVGDoc" type="image/svg+xml" data="example.svg"></object>

</body>
</html>

See also

HTMLEmbedElement
HTMLFrameElement
HTMLIFrameElement
HTMLObjectElement

 

 

Show:
© 2015 Microsoft