---
title: "webView(_:didReceiveTitle:for:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webframeloaddelegate/webview(_:didreceivetitle:for:)"
---

# webView(_:didReceiveTitle:for:)

Called when the page title of a frame loads or changes.

## Declaration

```swift
optional func webView(_ sender: WebView!, didReceiveTitle title: String!, for frame: WebFrame!)
```

## Parameters

- `sender`: The web view containing the frame.
- `title`: The newly loaded title.
- `frame`: The frame being loaded.

## Discussion

Discussion This method may be invoked multiple times before all resources for frame are completely loaded. Delegates can implement this message to display the page title to the user.
