DHTML Lab: JavaScript Enhancement with VBScript | 5 | WebReference

DHTML Lab: JavaScript Enhancement with VBScript | 5

Logo

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:

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