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

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

# parentFrame()

This method returns the parent [Frame](/docs/k6/next/javascript-api/k6-browser/frame/) object of the current frame.

### Returns

Expand table

| Type           | Description                                                                              |
|----------------|------------------------------------------------------------------------------------------|
| `Frame | null` | The parent frame object of the frame. Or `null` if the frame has no parent (main frame). |
