JayLewis Posted April 12, 2007 Share Posted April 12, 2007 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"> Quote Link to comment Share on other sites More sharing options...
fenway Posted April 12, 2007 Share Posted April 12, 2007 You should be able to do this with JS... otherwise, you can't load two things with one href in html. Quote Link to comment Share on other sites More sharing options...
JayLewis Posted April 12, 2007 Author Share Posted April 12, 2007 do you know the JS? Quote Link to comment Share on other sites More sharing options...
nogray Posted April 13, 2007 Share Posted April 13, 2007 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++;" .... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.