Jump to content

Refreshing a page.


JayLewis

Recommended Posts

What i am trying to achieve is when i click a link on my site, when it loads in the iframe i also want it to refrsh the main page.

the reason i want it doing this is so that user details can update regularly.

 

Thanks alot

 

heres the code.

<a style="text-decoration: none" target="main" href="inbox.php">

Link to comment
https://forums.phpfreaks.com/topic/46692-refreshing-a-page/
Share on other sites

you can do something like this

 

the did_load variable will stop the page from reloading once the page first load (so the user doesn't get unlimited loop)

<script language="javascript">
var did_load = 0;
</script>
<iframe onload="if(did_load > 0) window.location.reload(); did_load++;" ....

Link to comment
https://forums.phpfreaks.com/topic/46692-refreshing-a-page/#findComment-228657
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.