<script> var svgElem = document.createElementNS("http://www.w3.org/2000/svg", "svg"); document.createElement("script").appendChild(svgElem); svgElem.getScreenCTM(); </script>