Solved

multiple options in confirm box of javascript

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why is initMap returning "not a function" error. 3 64
Understanding UserAgent String 2 44
Provide the IDEA of External JS 1 34
15 puzzle in Javascript/html 2 33
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…
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…

680 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