---
title: "webViewRunModal(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webuidelegate/webviewrunmodal(_:)"
---

# webViewRunModal(_:)

Displays a web view in a modal window.

## Declaration

```swift
optional func webViewRunModal(_ sender: WebView!)
```

## Parameters

- `sender`: The web view that sent the message.

## Discussion

Discussion This method should display and order front a modal window containing the specified web view. This method is invoked after the webView(_:createWebViewModalDialogWith:) method is used to create a new window.

## See Also

### Creating and Closing Windows

- [webView(_:createWebViewModalDialogWith:)](webkit/webuidelegate/webview(_:createwebviewmodaldialogwith:).md)
- [webView(_:createWebViewWith:)](webkit/webuidelegate/webview(_:createwebviewwith:).md)
- [webViewClose(_:)](webkit/webuidelegate/webviewclose(_:).md)
