Menu
I have a bunch of links on a page, all under the same <div id=”music”>. Is there a way I can setup an onClick event for each link, to call the same function, WITHOUT adding the onClick event to EACH link? Make sense?
Using something like this:
[CODE]
function clicklinks () {
document.getElementById(“music”).onclick = function () { embedPlayer(this.text,this.href); return false; }
}
So that the document.getElementById is actually searching the <div id=”music”> which contains the links.
Thanks