Reading Time: 1 minute

Displays a dialog to the operator with a yes-no question.


vcc.confirm(message: string, [title: string]): boolean

A popup window (modal dialog) appears, containing a message and Yes/No buttons.


The message to be shown.

The title of the window. If not passed, the window will have no title.

Return values

Returns true if the Yes button is pressed, false otherwise.


We want to ask again if there are no orders.

// it will true or false
const answer = vcc.confirm('Everything was okay with the call?');

There are no comments yet.
Subscribe to our newsletter
or Contact us!
Please note that by subscribing to our newsletter, you agree to receive regular email messages from VCC Live® about service related news and updates. By subscribing to our newsletter, you also agree that VCC Live® will use your data in accordance with the applicable Privacy Policy until you unsubscribe from the newsletter.