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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.