FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Automatic Frame Refresh.

 


Hogwarts
Could anybody please tell me how to make a html (Preffered)/Javascript script that automatically refreshes one frame??
LukeakaDanish
place the following script in the frame:

Code:
<script langauge="javascript" type="text/javascript">
<!--

function reloadFrame() {
        self.location.reload();
}

-->

</script>


Make this your body tag:

Code:
<body onload="setTimeout('reloadFrame()',####);">


Replace the #### with the time till the page should refresh (in milliseconds) - 1000 is one second
Hogwarts
Cool, thanks for that Luke. Very Happy (It worked)
LukeakaDanish
Pleased to help!
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.