Friday, September 5, 2025
HomeLanguagesJavascriptHTML DOM Window performance Property

HTML DOM Window performance Property

The performance property returns a Performance object, which can be further used to gather performance information about the current document.

Syntax:

var per = window.performance

Return Value: It returns a performance object.

Example: This example shows how to get the performance object of the document using this property.

HTML




<!DOCTYPE HTML>
<html>
  
<body style="text-align:center;">
    <h1 style="color:green;">
        neveropen
    </h1>
  
    <p>
        HTML | window performance property
    </p>
  
  
    <button onclick="Geeks()">
        Click Here
    </button>
  
    <script>
        function Geeks() {
            console.log(window.performance);
        }
    </script>
</body>
  
</html>


Output:

  • Before Clicking the Button:

  • After Clicking the Button: In the console, the performance object can be seen.

Supported Browsers: 

  • Google Chrome
  • Edge
  • Firefox
  • Safari
  • Opera
  • Internet Explorer
Whether you’re preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, neveropen Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we’ve already empowered, and we’re here to do the same for you. Don’t miss out – check it out now!
RELATED ARTICLES

Most Popular

Dominic
32264 POSTS0 COMMENTS
Milvus
81 POSTS0 COMMENTS
Nango Kala
6634 POSTS0 COMMENTS
Nicole Veronica
11801 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11861 POSTS0 COMMENTS
Shaida Kate Naidoo
6750 POSTS0 COMMENTS
Ted Musemwa
7025 POSTS0 COMMENTS
Thapelo Manthata
6699 POSTS0 COMMENTS
Umr Jansen
6718 POSTS0 COMMENTS