QUOTE(hframe @ 17 Jun, 2009 - 01:52 AM)

Hi,
I am sorry, I am really quite new to this.
I use a website that I need to log into every 30 minutes if the page is left idle.
I thought I would create an iFrame page that auto refreshed meaning the site shouldn't time out.
My problem is that there are a few different systems on the page with different URLs.
The code I have written seems to only allow me to refresh the page to a specific URL.
Is it possible to tell the code to refresh the current page rather than a specific page?
Currently my code is:
CODE
<html>
<body>
<script type=text/javascript>
function refresh()
{
document.all.iframe1.src = document.all.iframe1.src;
}
window.setInterval("refresh()",1440000);
</script>
<iframe name='iframe1' src='http://www.mywebpage.com' width="80%" height="800">
<p>Your browser does not support iframes.</p>
></iframe>
</body>
</html>
Thanks,
Harrison
Dumb question, but if the issue is that you are trying to keep someone logged in, shouldn't you adjust the timeout? Those timeouts exist for a reasion.
BTW, while the above should work for refreshing (well in IE anyway... I think document.forms["iframe1"] is better supported), you don't even need javascript. In the iframed page, you only need to include meta refresh tag in the iframed page.
CODE
<meta http-equiv="refresh" content="300" />