.NET JavaScript : Refresh / Redirect web Page with JavaScript

Published: 11 February 2020
on channel: Flamingo Creations
63
0

Java script for Refresh web page every particular seconds / minutes without refresh.

// write in Script
function setIdle(cb, seconds) {
var timer;
var interval = seconds * 1000;
function refresh() {
clearInterval(timer);
timer = setTimeout(cb, interval);
};


refresh();
}


//Call the function
setIdle(function () {
//location.href = location.href; // Current page Refresh


location.href = '@Url.Action("PageRedirect", "RefreshPage")';
}, 5 // (its in Seconds, 600 seconds = 10 mins, lets change it 5 seconds)
);


On this page of the site you can watch the video online .NET JavaScript : Refresh / Redirect web Page with JavaScript with a duration of hours minute second in good quality, which was uploaded by the user Flamingo Creations 11 February 2020, share the link with friends and acquaintances, this video has already been watched 63 times on youtube and it was liked by 0 viewers. Enjoy your viewing!