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

# 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. |
