jsMsgbox

Msgbox for Javascript (IE only)

About

I got tired of the limits of window.alert() & window.confirm(), which are most everything Javascript has for collecting user responses.  I wanted the power of VB/VBA/VBScript's Msgbox function (rather than just mixing VBScript with Javascript, which often isn't an option).

So I rolled my own and called it jsMsgbox.  It can do nearly everything a native VBScript Msgbox can, including full icon/buttons choices, control of the dialog title, and keyboard accessibility.  Check it out..

Updated: XP SP2 compatibility

Live Demo

1) Msgbox options:





2) Command:







3) Return value:
 

 

View Source:

msgbox.js, js_msgbox.html, this page, everything zipped

notes

history

support

As-is, etc.  If you ask nicely, I may provide support via email.

credits/author

-Rob (@slingfive) Eberhardt, Slingshot Solutions
Use freely, but be honest about it.  I just ask for credit.

slingfive.com