Altova StyleVision 2025 Enterprise Edition

Displays a message box that shows a given message and the "OK" button. To proceed, the user will have to click "OK".

scr_cmd_alert

 

Signature

For JScript, the signature is:

 

alert(strMessage : String) -> void

 

For VBScript, the signature is:

 

MsgBox(strMessage : String) -> void

 

Example

The following JScript code displays a message box with the text "Hello World".

 

alert("Hello World");

© 2018-2024 Altova GmbH