All pastes #1078002 Raw Edit

Mine

public html v1 · immutable
#1078002 ·published 2008-07-21 01:36 UTC
rendered paste body
<html><script language="javascript">	var startTime = new Date();// The following function uses the time and calculates it against when the// script first loaded, basically getting the start and end time. This function// is run when the page finishes loading using the "onload=" DHTML element of // the iframe	function showElapsedTime(){		var testSiteUrl = document.getElementById("testFrame").src;		var testSiteString = String(testSiteUrl).slice(testSiteUrl.indexOf("www"));		var endTime = new Date();		var elapsedTime = Number(endTime-startTime);		var browser=navigator.userAgent;		var platform=navigator.platform;// This is the message that pops up informing you the elapsed time			var msgString = "http://" + testSiteString + "<br />took " + elapsedTime + " milliseconds or " + Number(elapsedTime/1000) + " seconds to load.<br /><br />Your browser and platform is: <br />" + browser;		document.getElementById("results").innerHTML = msgString;	}</script><h1>Webmonkey Stopwatch</h1><div style="margin:40px 0px; border: 1px solid black; padding: 5px;" id="results"><small>Test is running...</small></div><!-- This loads the web page in an iFrame and runs the showElapsedTime function when the page is loaded. --><iframe id="testFrame" onload="showElapsedTime();" src="http://www.scioly.org/phpBB3/" width="640" height="800" scrolling="no" frameborder="2" ></iframe></html>