Hi I have a Function that should call Controller Action once its called. But it is not calling Action Method; could you please advice
function timedCount() {
c = c + 1;
remaining_time = max_count - c;
if (remaining_time == 0 && logout) {
$('#logout_popup').modal('hide');
// This is I am trying to achieve
location.href = $('Home/Logout').val();
// window.location.href = "www.google.com/"; -- Works
} else {
$('#timer').html(remaining_time);
t = setTimeout(function () { timedCount() }, 1000);
}
}
I am trying to achieve something like Logout Modal