Expand|Select|Wrap|Line Numbers
- <script type="text/javascript" >
- window.onload = doLoad;
- function doLoad()
- {
- setTimeout( "refresh()", 5*1000 );
- }
- function refresh()
- {
- window.location.reload( false );
- }
- </script>
BUT
the problem i'm thinking about is that if the server does not respond (just once) as it happends sometimes the page will not be loaded again and if the page is not loaded it will not get refreshed anymore...
SO
I was thinking to put an IFRAME inside the main page and refresh it from the main page.. So even if server doesn't respond once, page will not stop refreshing and it may take another 5 seconds to refresh
This script refreshes the current window but unfortunately i dont know anything about JAVA and the only thing i do is to copy and past this script inside my page between HEAD tags... I'll be thankful if anyone help me refresh an IFRAME with this script ( whitout any click sound )