---
title: TaskAttributionTiming.containerType
slug: Web/API/TaskAttributionTiming/containerType
tags:
  - API
  - Long Tasks API
  - Performance
  - Property
  - Reference
  - TaskAttributionTiming
browser-compat: api.TaskAttributionTiming.containerType
---
{{SeeCompatTable}}{{APIRef("Long Tasks")}}

The **`containerType`** readonly property of the
{{domxref("TaskAttributionTiming")}} interface returns the type of frame container, one
of `iframe`, `embed`, or `object`.

## Syntax

```js
var containerType = TaskAttributionTiming.containerType;
```

### Value

A {{domxref("DOMString")}} containing the container's type, one of `iframe`,
`embed`, or `object`.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
