Please enable JavaScript to view this site.

Altova StyleVision 2020 Professional Edition

Opens a dialog box that shows a given message, a confirmation button, and a cancel button. The user will have to click either "OK" or "Cancel" to proceed. Returns a Boolean that represents the user's answer. If the user clicked "OK", the function returns true; if the user clicked "Cancel", the function returns false.




confirm(strMessage : String) -> result : Boolean


Example (JScript)

if ( confirm( "Continue processing?" ) == false )
 alert("You have cancelled this action");


Example (VBScript)

If ( confirm( "Continue processing?" ) = false ) Then
MsgBox("You have cancelled this action")
End If

© 2020 Altova GmbH