Solved

multiple options in confirm box of javascript

Posted on 2004-07-30
5
1,725 Views
Last Modified: 2011-03-06
How to get 4 options in confirm box in javascript

onclick="return confirm('Remove the item');"
This gives a confirm box with remove the item with OK and CANCEL

Instead, How do I Make 4 options viz., Option1, Option2, Option3, Cancel using the confirm or alert in javascript

Thanks in advance,
Jay
0
Comment
Question by:jayvit
5 Comments
 
LVL 2

Expert Comment

by:norie40
ID: 11677700
I don't think you can do that in Javascript. What I'd recommend is to use a 'prompt(msg)' box to retrieve either a 1, 2, 3, or 0 for cancel.
0
 
LVL 10

Accepted Solution

by:
Bustarooms earned 20 total points
ID: 11677949
0
 
LVL 2

Expert Comment

by:Hurb
ID: 11685333
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question