spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / dhtml / column22

Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management
Logo

JavaScript Enhancement with VBScript
the droll pop-ups


Since JavaScript 1.0, the alert(), confirm() and prompt() methods have been important tools for communicating with the user. As we all know, however, they are extremely colorless, and uncustomizable.

Dialog Boxes We Have Known

In the Beginning (NS3-)

Navigator 3-
The Original Alert Dialog:

This grandaddy of Web dialogs certainly did what its name implied: it alerted the user. Early users, new to scripted pages, usually responded: "What is 'JavaScript,' and why is it alerting me? What have I done wrong?." The "JavaScript Alert:" part of the message was completely unnecessary, and only confused users.
The Original Confirm Dialog:

This dialog expects a yes/no response from the user. That is, a confirmation. Then why do the buttons read OK and Cancel, instead of Yes/No????
The Original Prompt Dialog:

The title bar is more informative than the title bars in the other two dialogs. But is it a Netscape User Prompt or a JavaScript Prompt? And what's the difference? And why are both messages included?

Version 4 Browsers

Navigator 4

Better. The "JavaScript" has been moved away from the message area. But what is a JavaScript Application? Again, this confuses the user. The browser name would have sufficed, and been a lot more user-friendly.

Same title bar problem and it retains the old OK/Cancel buttons.

Same title bar problem.

Explorer 4

A good, unconfusing dialog. The title bar identifies the browser and the message area contains only the message.

Only problem is the inappropriate button captions.

The old double messages have been inexplicably retained.

How many times have you wished to have some control over what is displayed in system dialogs?

Have you ever wished your dialogs could:

All of the above are possible with VBScript.


Produced by Peter Belesis and

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags

All Rights Reserved. Legal Notices.
Created: Nov. 18, 1998
Revised: Nov. 18, 1998

URL: http://www.webreference.com/dhtml/column22/js-vbNorm.html