<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebFrameLoadDelegate/webView(_:willPerformClientRedirectTo:delay:fire:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WebFrameLoadDelegate(im)webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:"
  },
  "title" : "webView(_:willPerformClientRedirectTo:delay:fire:for:)"
}
-->

# webView(_:willPerformClientRedirectTo:delay:fire:for:)

Called when a frame receives a client redirect and before it is fired.

```
optional func webView(_ sender: WebView!, willPerformClientRedirectTo URL: URL!, delay seconds: TimeInterval, fire date: Date!, for frame: WebFrame!)
```

## Parameters

`sender`

The web view containing the frame.

`URL`

The redirect location.

`seconds`

The number of seconds from `date` before the redirect will be fired.

`date`

The date and time to call the redirect.

`frame`

The frame where the redirect occurred.

## Discussion

Delegates might implement this method to display progress while a client redirect is pending. If a client redirect is cancelled the [`webView(_:didCancelClientRedirectFor:)`](/documentation/WebKit/WebFrameLoadDelegate/webView(_:didCancelClientRedirectFor:)) delegate method is invoked.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)