Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<script language="javascript">
var dte = new Date()
var timeStart = dte.getTime()
function CalcTime(){
var dte = new Date()
var diff = dte.getTime() - timeStart;
var sec = diff/1000;
var ms = diff/100;
alert("Time to complete page load:\n Seconds: " + sec + "\nMilliseconds: " + ms);
return true;
}
</script>
<body onLoad="CalcTime()";>
<!--your code goes here-->
</body>
</html>
<html>
<script language="javascript">
var dte = new Date()
var timeStart = dte.getTime()
function CalcTime(){
var dte = new Date()
var diff = dte.getTime() - timeStart;
var sec = diff/1000;
var ms = diff/100;
alert("Time to complete page load:\n Seconds: " + sec + "\nMilliseconds: " + ms);
return true;
}
</script>
<body>
<iframe id="ifTimer" src="timed.html" onLoad="CalcTime();"></iframe>
</body>
</html>
<html>
<body>
<table border=1 width=75% align=center>
<tr>
<td colspan=2 align=center><b>Page Load Timer</b></td>
</tr>
<tr>
<td width=30%>Page name:</td>
<td width=70% id=timerPage align=center>unknown</td>
</tr>
<tr>
<td>Seconds:</td>
<td id=timerSec align=center>processing...</td>
</tr>
<tr>
<td>Milliseconds:</td>
<td id=timerMS align=center>processing...</td>
</tr>
</table>
<p align=center>
<iframe style="visibility=hidden;" id=ifTimer src="iftimed.html" onLoad="CalcTime();"></iframe>
</p>
</body>
<script language="javascript">
document.all.timerPage.innerText = document.all.ifTimer.src
var dte = new Date()
var timeStart = dte.getTime()
function CalcTime(){
var dte = new Date()
var diff = dte.getTime() - timeStart;
var sec = diff/1000;
var ms = diff/100;
document.all.timerSec.innerText = sec;
document.all.timerMS.innerText = ms;
return true;
}
</script>
</html>