Open In App

SVG window.performance Property

The SVG window.performance property is used to gather performance information about the current document.

Syntax:



var p = window.performance

Return value: This property returns a performance object.

Example 1:






<!DOCTYPE html>
<html>
  
<body>
    <center>
        <h1>GeeksforGeeks</h1>
  
        <button onclick="get()">
            Click Here
        </button>
          
        <svg viewBox="0 0 10000 10000" 
            xmlns="http://www.w3.org/2000/svg">
              
            <script type="text/javascript">
                function get() {
                    var g = document.getElementById("g");
                    console.log(window.performance);
                }
            </script>
        </svg>
    </center>
</body>
  
</html>

Output:

Supported Browsers:

Article Tags :