Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

multiple options in confirm box of javascript

Posted on 2004-07-30
5
Medium Priority
?
1,767 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 80 total points
ID: 11677949
0
 
LVL 2

Expert Comment

by:Hurb
ID: 11685333
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
Suggested Courses

886 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