Solved

multiple options in confirm box of javascript

Posted on 2004-07-30
5
1,722 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now