134
rated 0 times
[
140]
[
6]
/ answers: 1 / hits: 77731
/ 12 Years ago, tue, september 25, 2012, 12:00:00
This is a piece of my function with the question in it:
function deletePost() {
var ask = window.confirm(Are you sure you want to delete this post?);
if (ask) {
window.alert(This post was successfully deleted.);
/* How to redirect to another page on confirm? */
}
}
Pure Javascript needed.
More From » javascript