The entryType property returns the performance entry's type. The valid entryType values are:

This property is Read only .



Return value

A DOMString representing the type of interface the performance entry represents. The return value is one of the strings listed above.


The following example shows the use of the entryType property.

function run_PerformanceEntry() {
  // check for feature support before continuing
  if (performance.mark === undefined) {
    console.log("performance.mark not supported");
  // Create a performance entry named "begin" via the mark() method
  // Check the entryType of all the "begin" entries
  var entriesNamedBegin = performance.getEntriesByName("begin");
	for (var i=0; i < entriesNamedBegin.length; i++) {
      var typeOfEntry = entriesNamedBegin[i].entryType;
      console.log("Entry is type: " + typeOfEntry);


Specification Status Comment
Performance Timeline Time Level 2
The definition of 'entryType' in that specification.
Editor's Draft  
Performance Timeline
The definition of 'entryType' in that specification.
Recommendation Initial definition.

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support. (Yes) (Yes) (Yes) (Yes) (Yes) No support
Feature Android Edge Firefox Mobile (Gecko) Firefox OS IE Phone Opera Mobile Safari Mobile
Basic support. (Yes) (Yes) 25.0 (25.0) 1.2 (25.0) 10.0 (Yes) No support

Document Tags and Contributors

 Contributors to this page: abbycar, stephaniehobson, AFBarstow
 Last updated by: abbycar,