---
title: "webView(_:setStatusText:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webuidelegate/webview(_:setstatustext:)"
---

# webView(_:setStatusText:)

Sets the status message displayed by a web view’s window, if any, to the specified text.

## Declaration

```swift
optional func webView(_ sender: WebView!, setStatusText text: String!)
```

## Parameters

- `sender`: The web view that sent the message.
- `text`: The status message to display.

## Discussion

Discussion The delegate receives this message when a JavaScript function in the web view explicitly sets the status text. No action is taken if you do not implement this method.

## See Also

### Displaying Status Messages

- [webViewStatusText(_:)](webkit/webuidelegate/webviewstatustext(_:).md)
