Basically if I have <a href="" onclick="someFunction();"></a> which will download a file. If the user says NO to confirm("Do you agree?") dialog, we don’t want to let the user download this file.
This is all done with HTML and Javascript. All on client.
We want to kill the <a> to continue. Is it possible? Or can we deferred <a> ?
Thanks
Use
in your function someFunction() which trigger in onclick event.