faqts : Computers : Programming : Languages : JavaScript

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

6 of 30 people (20%) answered Yes
Recently 1 of 10 people (10%) answered Yes

Entry

how can I check if the whole document is loaded over?

Apr 6th, 2008 19:59
ha mo, Colin Fraser, peter yao,


The question : 
   how can I check if the whole document is loaded over?
does not make a lot of sense it is too brief. Loaded over what? 
Completely loaded? 
Look at the status bar of the browser, that should tell you.  
How can I test when the document is fully loaded? 
Try,
<script>
function loadedpage() {
     alert("This page has completed loading")
  }
<body onLoad="loadedpage()">
The onLoad event fires when the document has been fully loaded. 
How do I know if the page being loaded fully replaces the previous page
in the browser window? 
If the page has only partly loaded and stops, for an error or something,
the previous page has already been completely replaced in the browser
window. The first process in loading any document is to clear the
previous document from the browser window fully before doing anything else. 
I hope that covers the question you wanted to ask...
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com