Alternatively you can use
<frame id="mainFrame>
<body on Load="javascript: window.setTimeout(7000)">
</body>
</frame>
This will refresh the mainFrame after every 7 seconds. Check
setTimeout() for more details.
To cancel the time out, use clearTimeout(). Form more details check
clearTimeout().