Entry
Can an HTML page loaded into a layer be refreshed automatically?
Apr 28th, 2001 23:30
Colin Fraser, Jason Campbell,
No not that I am aware of. You cannot refresh a layer, but you can
refresh the page the layer resides in and refresh the page that is
loaded into the layer you really want to refresh. Anything updated on
the page in the layer will automatically refresh as the original page is
reloaded.
<script language="JavaScript"><!--
if (document.images) {
setTimeout('location.reload(true)',5000); // forces a reload
from the server in 5 seconds
document.write("Reloading from server"); //test line of code
}
else {
setTimeout('location.href = location.href',5000); // just
reloads the page
document.write("Reloading from page"); //test line of code
}
//--></script>