Is there a way to test the type of an element in JavaScript?
The answer may or may not require the prototype library, however the following setup does make use of t
if (element.nodeName == "A") { ... } else if (element.nodeName == "TD") { ... }