JavaScript Page Load Time Kodu
<!-- Description: A Javascript page load timer
Browsers: IE,FF,Opera (Safari does not support the innerHTML)
Server requirements: Linux/Unix Apache
Additional Information:
Note: the code will time how long it takes the page to load in javascript. -->
<script language="JavaScript">
<!---
initTime = (new()).getTime();
function pageloadingtime()
{
postTime = (new()).getTime();
seconds = (postTime-initTime)/1000;
document.getElementById("loadTime").innerHTML = "<font color="#00FFCC">(Your Page took " + seconds + " second(s) to load.)</font>";
}
window.onload = loadTime;
//--->
</script>
<!--- PLACE THIS PEICE OF CODE AT THE BOTTOM OF THE PAGE --->
<p><div id="loadTime"></div></p> Date Date