
## confirm {#str}

Displays a modal OK/Cancel prompt with the given message, waits for the user to dismiss it, and returns true if the user clicks OK and false if the user clicks Cancel.


### Returns 


Returns true if the user clicks OK and false if the user clicks Cancel


```python
def confirm(self, message):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| message | str | The message. |



### See Also
* module [`aspose.html.window`](../../)
* class [`IWindow`](/html/python-net/aspose.html.window/iwindow)
