I'm fairly new to javascript and along with it, I'm using PHP for server-side scripting. It's really hard to put the problem into words, but here's the scenario:
In clicking a link, I want a confirmation box to pop-up. I know js's confirm() function does this, but I'm not sure about that really, because I want the confirmation box to display 3 buttons: a 'cancel' button, a 'yes' button and a 'no' button, where buttons 'yes' and 'no' should lead to two different links which will be provided via PHP (because the links are dynamic).
Before anything else, I'd just like to ask first if this is possible.
Secondly: can I do this in Javascript?
Third: If it's possible, and if I can do it in JS, then what function should I use?
Please also post any other opinions and notes regarding the matter. I'd love to learn more about it.