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

# parentFrame()

This method returns the parent [Frame](/docs/k6/latest/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). |
