solidcodes — 2013-07-01T09:03:43-04:00 — #1
I need little help here,
I have the codes here,
<p>Click the button to display a confirm box.</p>
<button onclick="myFunction()">Try it</button>
var r=confirm("Press a button!");
x="You pressed OK!";
x="You pressed Cancel!";
The codes above is just a confirmation box.
What I wanted here is to apply this into delete URL.
Whenever I click the delete link this confirmation box will popup (YES or NO).
When YES is clicked it will continue to delete.
If NO is clicked it will simply cancel.
This is just basic really.
Thanks in advance.
spikez — 2013-07-01T09:32:03-04:00 — #2
You need to add a return false; statement to the script after x="You pressed Cancel!";
system — 2014-10-08T00:29:39-04:00 — #3
This topic is now closed. New replies are no longer allowed.