---
title: "content() | Grafana k6 documentation"
description: "Browser module: frame.content method"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# content()

Gets the HTML content of the frame.

### Returns

Expand table

| Type              | Description                                                                                                             |
|-------------------|-------------------------------------------------------------------------------------------------------------------------|
| `Promise<string>` | A Promise that fulfills with the HTML content of the frame as a string value or `null` if the attribute is not present. |
