简体   繁体   中英

Refreshing Div Contents Automatically - NO PHP

I've been scouring the net for a bit now trying to find a simple solution to this. I have some html, and within this I have a div that referrences another html page. All I want to do is reload that div on a set timer.

I dont have any PHP pages. And the page loads correctly at the moment, I just want it to reload every now and then. If I hit the F5 button it reloads correctly.... but it reloads the whole page. I just want this one div to reload.

Is this even possible with it being HTML pages or do they need to be PHP?

load your php content in a div:

$("#yourDiv").load("yourURL.php");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM