webView(_:createWebViewModalDialogWith:)
Creates a modal window containing a web view that loads the specified request.
Declaration
optional func webView(_ sender: WebView!, createWebViewModalDialogWith request: URLRequest!) -> WebView!Parameters
- sender:
The web view that sent the message.
- request:
The request to load.
Return Value
The web view that is loading the specified request.
Discussion
This method is invoked when JavaScript calls window.showModalDialog. It should create a new modal window containing the web view and initially hide the window. The webViewRunModal(_:) message is sent to the delegate to display the web view.
See Also
Related Documentation
- WebKit Objective-C Programming Guide