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.
You need to add a return false; statement to the script after x="You pressed Cancel!";
This topic is now closed. New replies are no longer allowed.