How to redirect to action from JavaScript method?

To redirect:

function DeleteJob() {
    if (confirm("Do you really want to delete selected job/s?"))
        window.location.href = "https://stackoverflow.com/questions/5336858/your/url";
    else
        return false;
}

Leave a Comment