1
How do I get onclick
return a window with the 3 options:
Yes
Not
- Cancel
I need to know how to treat the selected option as well.
The link
will direct to a code PHP that will treat the ID
passed, if the user chooses the PHP after rotating will direct to a page, if the user says no, it will run the PHP and move on to another page.
If he cancels, then just abort the operation.
<a onclick="return confirm('exemplo de texto exibido')" href="pagina.php?id="1"></a>
The
confirm
of Javascript returns onlytrue
orfalse
, I guess you’ll have to do another way– Artur Trapp
Make a script to open a bootstrap modal and also put a script for case if you click one of these options inside the modal. But I don’t know the whole situation, but it can be done this way.
– Caslokman
With javascript you can not. Use an example framework/library: https://stackoverflow.com/questions/9091001/how-to-show-confirmation-alert-with-three-buttons-yes-no-and-cancel-as-it
– aa_sp
then. Is there any other onclick that gives me that possibility?
– ARodrigues