Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find ready state of document

Status
Not open for further replies.

sowmindra

Programmer
Feb 12, 2002
3
IN
hi,
Can someone tell me how could i find whether the page is full loaded or not.If i use document.readyState it always displays "complete".I wish i could display "Please wait while the page is loading.." or some message like this.

Thanks in advance
Regards
Sowmindra
 

onLoad event occures when the page loading is complete. For example:
onLoad="window.alert('The page loaded')"

Use it like this:

<html>
<body onLoad=&quot;someFunc()&quot;>
. . .

someFunc() function will be called only when page is loaded completely.

 
no what i want it the progrss bar or some thing like that which shows the percentage of the html page loaded
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top