473,382 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Creating a yes/no messagebox in Javascript

Hi all,

Is it possible to create a Javascript messagebox that shows the buttons Yes
and No instead of normal confirm?

Regards
John.

Nov 17 '05 #1
5 120460
The Javascript function is alert with some special parameters:

http://www.planetpdf.com/mainpage.asp?WebPageID=318

On Sat, 19 Jul 2003 02:33:54 +0100, John <a@b.com> wrote:
Hi all,

Is it possible to create a Javascript messagebox that shows the buttons
Yes
and No instead of normal confirm?

Regards
John.


--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 17 '05 #2
OK, major braincramp on that one....I knew there was a way, did a quick
search, bam, my last answer...didn't apply whatsoever....

sorry bout that: try confirm:

http://javascript.internet.com/messa...o-confirm.html


On Fri, 18 Jul 2003 21:50:56 -0500, Craig Deelsnyder [MVP]
<cd******@nospamyahoo.com> wrote:
The Javascript function is alert with some special parameters:

http://www.planetpdf.com/mainpage.asp?WebPageID=318

On Sat, 19 Jul 2003 02:33:54 +0100, John <a@b.com> wrote:
Hi all,

Is it possible to create a Javascript messagebox that shows the buttons
Yes
and No instead of normal confirm?

Regards
John.



--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 17 '05 #3
Hi

No but you can create your own using showModalDialog for example
http://msdn.microsoft.com/library/de...odaldialog.asp

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"John" <a@b.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi all,

Is it possible to create a Javascript messagebox that shows the buttons Yes and No instead of normal confirm?

Regards
John.

Nov 17 '05 #4
All of which have become virtually useless as they are trapped
and blocked by the PopUp blockers.

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

LaGarde StoreFront 5 Affiliate: e-Commerce Software Development
SEE: http://www.storefront.net/default.as...RER=-201499070
"Craig Deelsnyder [MVP]" <cd******@nospamyahoo.com> wrote in message news:op**************@news.microsoft.com...
OK, major braincramp on that one....I knew there was a way, did a quick
search, bam, my last answer...didn't apply whatsoever....

sorry bout that: try confirm:

http://javascript.internet.com/messa...o-confirm.html


On Fri, 18 Jul 2003 21:50:56 -0500, Craig Deelsnyder [MVP]
<cd******@nospamyahoo.com> wrote:
The Javascript function is alert with some special parameters:

http://www.planetpdf.com/mainpage.asp?WebPageID=318

On Sat, 19 Jul 2003 02:33:54 +0100, John <a@b.com> wrote:
Hi all,

Is it possible to create a Javascript messagebox that shows the buttons
Yes
and No instead of normal confirm?

Regards
John.



--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 17 '05 #5
mine doesn't do that....why would a popup blocker get involved with that
javascript? It's an 'alert' box, not a separate window.....even though
some sites love to also use alerts to advertise...

not to say blockers don't do this, I just didn't know they got that
'intrusive' (in my opinion).....


On Sat, 19 Jul 2003 10:15:37 -0500, clintonG
<cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote:
All of which have become virtually useless as they are trapped
and blocked by the PopUp blockers.


--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
3
by: Christer | last post by:
Hi all! I recently created a MessageBox webcontrol for asp.net. This can be used as is, but I also want to take ude of it in other webcontrols. Right now i creating a ValidationSummary control,...
5
by: Curt Emich | last post by:
I always thought writing a simple diagnostic message in a message box would be pretty simple. Not in .NET. First, I wrote this amazingly complex piece of code: MessageBox.Show("yer mama") ...
10
by: Russ | last post by:
I've been trying to figure out how to show a simple messagebox with an OK button in my web client program (C#). I have looked at every reference to JScript and MessageBox that seemed even remotely...
13
by: Chris | last post by:
I can create Javascript confirm message boxes during page creation, etc adding them to the button attributes (many good posts on this!). But how can I add this event after the button is pressed? I...
10
by: Andrew | last post by:
Hi, I have a messagebox that pops up due to an event. I did it in javascript. ie. alert("Time's up. Assessment Ended"); I want to capture the OK and Cancel events of this alert messagebox. My...
4
by: Coleen | last post by:
Hi All :-) Can anyone give me a URL where I can find a good example of code on how to create a temporary SQL table using VB.net? I've checked the Microsoft site at: ...
3
by: VMI | last post by:
I know this isn't the best group to post aspnet question, but the MS asp.net NG hasn't been very helpful lately. I've been trying to add a messagebox following the examples I've seen on the web,...
1
by: kret | last post by:
Hi, this is my first post so first of all I would like to say hello :) Now getting to my problem. In my job I have to create an ActiveX control in .NET 1.1 that can be lunched from IE....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.