Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 18th, 2004, 11:56 PM
Authorized User
 
Join Date: Nov 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default Customizing Javascript Message boxes

Hi, is there a way to customize the Javascript "Alert" or "Confirm" message boxes. Currently the title and the buttons (OK for Alert and OK/Cancel for Confirm) are fixed.

I have a peculiar requirement of displaying the javascript message box to display the information depending on the errors that would creep up.

currently the Alert or Confirm, only takes the message as the parameter. Is there a way to change the title of the message box and the icons (Information, Warning) programatically??

Tx for replies.
Praveen

 
Old April 19th, 2004, 10:19 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I have never found a way to do this, which leads me to believe it is not possible.

I suggest looking into window.showModalDialog() and window.showModelessDialog().

HTH,

Snib

<><





Similar Threads
Thread Thread Starter Forum Replies Last Post
message boxes kdhessler VB.NET 2002/2003 Basics 10 May 9th, 2005 08:52 AM
Message Boxes and passwords jackdaddy Javascript How-To 5 November 27th, 2004 11:24 PM
Formatting Message Boxes Magic_Hat Excel VBA 1 June 21st, 2004 10:13 AM
How to I create non-modal message boxes? Ciarano VB How-To 0 March 12th, 2004 12:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.