vnay92 vnay92 - 1 year ago 64
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?


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.