vnay92 vnay92 - 2 years ago 100
Javascript Question

Refreshing a page after certain delay in jquery

here's my problem: i need to display a message for a while, and then reload the page.
can someone tell me how to reload a page, after certain delay?

Answer Source

You don't even need jQuery or HTML5 for this.

setTimeout(location.reload.bind(location), 60000);

This will wait 1 minute (60,000 milliseconds), then call the location.reload function, which is a built-in function to refresh the page.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download