DHTML Lab: JavaScript Enhancement with VBScript | 5

JavaScript Enhancement with VBScript
the not-so-droll VBScript pop-ups, 2/2
The Input Box Dialog

The Input Box dialog is created using the VBScript InputBox() function:
InputBox(prompt,title,default)where:
- prompt is a string to be displayed as a message to the user
- title is a string to be displayed in the title bar
- default is a string to be displayed in the input area and used as the return value if the user does not provide a response
The only difference, really, between VBScript's InputBox() and JavaScript's prompt() is the ability to customize the title bar. This is important enough, however, for us to consider using it as a replacement for prompt().
The Next Step
For JavaScript to access the VBScript built-in functions, we must first create our own VBScript functions and, in the process, simplify the arguments passed.
Produced by Peter Belesis and
All Rights Reserved. Legal Notices.Created: Nov. 18, 1998
Revised: Nov. 18, 1998
URL: http://www.webreference.com/dhtml/column22/js-vbInput.html


