I think NTL (big British broadband provider, similar to AOL in America) have decided it's Experience Life as a Snail week -- my connection currently measures at 715 bytes per second. Anyway...
You can also toggle the whole event:
Code:
<button id="btn">A button</button>
<script type="text/javascript">
function toggleOn() {
// do something
this.onclick = toggleOff;
}
function toggleOff() {
// do something else
this.onclick = toggleOn;
}
document.getElementById("btn").onclick = toggleOn;
</script>
All depends on what you want to do and what else you've got to measure by.
Bookmarks