When creating a splash page and using the html redirection code how is it best to avoid ending in an endless redirection loop?
The page I want to redirect to is the main index page of the site that I am filing the splash page in. and when I set the splash page going it just endlesslly loops onto itself.
I have tried renaming the index.html file but it gave no effect. I amnot sure what else to try. I am guessing there is some other code that I need to write in to bypass this problem but I can't think of it for the life of me.
Code:
<script type="text/javascript">
window.onload=timeout;
function timeout(){
window.setTimeout("redirect()",15000)}
function redirect(){
window.location="name of http link I want to send to"
return}
</script>
That is the redirect code I am using.
Any help would be appreciated, thanks