Ijuhash
Ijuhash

Reputation: 137

Refresh webpage at specific time while hiding it from the user

I need to refresh the content of my site at specific time (hour:min:sec), but I don't want user to know when it will be refreshed.

I don't want to refresh the page every 30 seconds. I want to reload the content only on a specific date, including seconds, and don't let the user to know this date.

What options do I have?

Upvotes: 0

Views: 505

Answers (2)

Deepak Ingole
Deepak Ingole

Reputation: 15742

Please use node.js or any server side push model.I guess This could your purpose. Also check AJAX PUSH MODEL(REVERSE AJAX)

Upvotes: 1

no name
no name

Reputation: 7

var ld=self.setInterval(function(){window.location.reload();},60000);

The above variable refresh page every minute, and from there you can reset the refresh page in case some user press a button and you want to stop refreshing page until the user finished.

Stop refreshing:

ld=window.clearInterval(ld);

Upvotes: 0

Related Questions