.exports() Suggest edits
Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog.
Usage
Parameters
| Name | Type | description |
|---|---|---|
callback |
function | Callback function which is called with the result value. |
Returns
| Type | description |
|---|---|
| string | The text of the currently displayed alert. |