How do I get the onclick
to return a window with the 3 options:
-
Yes
-
No
- Cancel
I need to know how to handle the selected option as well.
The link
will point to a PHP code that will handle the last ID
, if the user chooses yes PHP after running it will point to a page , if the user says no, it will run the PHP and move to another page.
If it cancels, then I just aborted the operation.
<a onclick="return confirm('exemplo de texto exibido')" href="pagina.php?id="1"></a>