Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

multiple options in confirm box of javascript

Posted on 2004-07-30
5
Medium Priority
?
1,761 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

705 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