Skip to content
Related Articles

Related Articles

Improve Article

HTML DOM Window performance Property

  • Last Updated : 23 Jul, 2020

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


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.


<body style="text-align:center;">
    <h1 style="color:green;">
        HTML | window performance property
    <button onclick="Geeks()">
        Click Here
        function Geeks() {


  • 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

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :