J
Jake Barnes
Imagine I've a function called suprise and I've a link called
goSomewhereCool and I do this:
document.getElementById('goSomewhereCool').onclick = surprise;
Now later I want to reset the onClick of the link so it just does what
you'd expect from a link - when you click on it you go the URL that is
in its href property. How do I remove surprise from the onclick and
make the link go back to normal?
goSomewhereCool and I do this:
document.getElementById('goSomewhereCool').onclick = surprise;
Now later I want to reset the onClick of the link so it just does what
you'd expect from a link - when you click on it you go the URL that is
in its href property. How do I remove surprise from the onclick and
make the link go back to normal?