Written by Tom on Thursday 22/03/07
Wanting to test our new broadband connection I went on the hunt for a free online bandwidth tester. As usual they never do exactly what you want so I had a crack at writing my own.
It is very simple, clicking the Start button gets the time now and assigns the src property.
By using the ‘onLoad’ event of the img tag you can call a function that then compares the start time with the stop time and works out the raw through put.
This will not run on IE6 if you are using IE do yourself a favor and change to Mozilla FireFox by clicking on the icon below. It's faster and more secure.
Try it for yourself here.
Download the entire code (50 lines) from here.