faqts : Computers : Programming : Languages : JavaScript : DHTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 16 people (56%) answered Yes
Recently 4 of 8 people (50%) answered Yes

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>