---
title: WebPage.JavaScriptPromptResult
framework: webkit
role: symbol
role_heading: Enumeration
path: webkit/webpage/javascriptpromptresult
---

# WebPage.JavaScriptPromptResult

The result of handling a JavaScript confirm invocation.

## Declaration

```swift
enum JavaScriptPromptResult
```

## Topics

### Enumeration Cases

- [WebPage.JavaScriptPromptResult.cancel](webkit/webpage/javascriptpromptresult/cancel.md)
- [WebPage.JavaScriptPromptResult.ok(_:)](webkit/webpage/javascriptpromptresult/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.JavaScriptConfirmResult](webkit/webpage/javascriptconfirmresult.md)
