I'm wondering how to refresh/reload a page (or even specific div) once(!) using jQuery?
Ideally in a way right after the DOM structure
is available (cf. onload
event) and not negatively affecting back button
or bookmark
functionality.
Please, note: replace()
is not allowed due to third-party restrictions.
Best Answer
Alright, I think I got what you're asking for. Try this
If it is once, then just do
If it is periodically
So, every five seconds the div #div-id content will refresh. Better than refreshing the whole page.