I have a .JS with a lot of code.
And when I execute a function choose() { here! }
I want to appear in some kind of popup, some buttons, with three choices for example - I have already done the actions for those buttons.
I need that the most efficient possible, but with good looking.
I already used "standart" solutions like the confirm box:
var answer = confirm ("Are you having fun?")
if (answer)
alert ("Woo Hoo! So am I.")
else
alert ("Darn. Well, keep trying then.")
that's not suitable to me because I the popup I want is to choose one between three colours! So I would like to post a square it a color (the button) and I cant do it with that solution!
What could I do?
Important thing: I need to stay on JS, no HTML allowed :)
Dont know JS enough to know what to look, so I appreciate your help !