---
title: WebPage.JavaScriptConfirmResult
framework: webkit
role: symbol
role_heading: Enumeration
path: webkit/webpage/javascriptconfirmresult
---

# WebPage.JavaScriptConfirmResult

The result of handling a JavaScript confirm invocation.

## Declaration

```swift
enum JavaScriptConfirmResult
```

## Topics

### Enumeration Cases

- [WebPage.JavaScriptConfirmResult.cancel](webkit/webpage/javascriptconfirmresult/cancel.md)
- [WebPage.JavaScriptConfirmResult.ok](webkit/webpage/javascriptconfirmresult/ok.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Customizing JavaScript dialogs

- [WebPage.DialogPresenting](webkit/webpage/dialogpresenting.md)
- [WebPage.FileInputPromptResult](webkit/webpage/fileinputpromptresult.md)
- [WebPage.JavaScriptPromptResult](webkit/webpage/javascriptpromptresult.md)
