Forum Moderators: open
html body related to topic:
-----------
generated in <b><span id="time"> </span></b> seconds<br>
-----------
javascript related to topic:
-----------
<script type='text/javascript'>
var hasInnerText = (document.getElementsByTagName("body")[0].innerText != undefined) ? true : false;
var elem = document.getElementById("time");
if(!hasInnerText){
elem.textContent = "0.003 ";
} else{
elem.innerText = "0.003 ";
}
</script>
-----------
They're purpose obviously is to send the time it took for the page to be generated to the top of the page. This code works flawlessly in any browser i tested it in except Google Chrome where the time isn't sent up the page. Any ideas why that might happen?
Thanks in advance.