Version: 1.0
The InputBox function creates a prompt for an input dialog
box.
The dialog box usually asks a question and prompts a reply from the
user.
If the user clicks the OK button or presses ENTER, the InputBox
function returns all text inside the text box. If the user clicks the
CANCEL button, a zero-length string "" is returned.
< INPUT TYPE="BUTTON" NAME="button0" VALUE="Click Here!" >
< SCRIPT LANGUAGE="VBScript" >
Sub button0_onclick
Dim returntext
returntext = InputBox("This is an input box!")
End Sub
< /SCRIPT >
< INPUT TYPE="BUTTON" NAME="button1" VALUE="Click Here!" >
< SCRIPT LANGUAGE="VBScript" >
Sub button1_onclick
Dim returntext promptext
prompttext = "This is an input box!"
prompttext = prompttext (chr(13) chr(10))
prompttext = prompttext "We added a second line!"
returntext = InputBox(prompttext, "INPUT Function")
End Sub
< /SCRIPT >
< INPUT TYPE="BUTTON" NAME="button2"
VALUE="Click Here!" >
< SCRIPT LANGUAGE="VBScript" >
Sub button2_onclick
Dim returntext promptext titletext
prompttext = "This is an input box!"
titletext = "INPUT function"
returntext = InputBox(prompttext, titletext, "Any text you
wish...")
End Sub
< /SCRIPT >
< INPUT TYPE="BUTTON" NAME="button3"
VALUE="Click Here!" >
< SCRIPT LANGUAGE="VBScript" >
Sub button3_onclick
Dim returntext promptext titletext
prompttext = "This is an input box!"
titletext = "INPUT function"
defaulttext = "Upper left corner"
returntext = InputBox(prompttext, titletext, defaulttext, 150,
150)
End Sub
< /SCRIPT >