You are on page 1of 6

Dialog Box in VBScript

InputBox
Takes user input Syntax: InputBox(prompt[,title][,default]) Example: name=inputbox("Enter Your Name: ", "Name Value","<Enter Name>")

MsgBox
Displays messages Syntax: MsgBox message[,button value] Example: Msgbox "This is message box",0 Msgbox "This is message box",1

Alert
Shows alert messages Syntax: Alert message Example: Alert You are in strict zone

Confirm
Similar as Alert Has only two buttons OK and Cancel Syntax: Confirm message Example: Confirm Are you sure about it?

Prompt
Prompts the user for data, much like InputBox Only accepts two arguments Syntax: Prompt(prompt_msg[,default]) Example: name=prompt("What is your college name?","Khwopa")

You might also like