I have an HTML document with about 30,000 words in it.
I\'d like to be able to do something when a user clicks any word. For simplicity/concept right now, I\'d just
I'm a little late to the party I see.
Try this one out.
init()
function init()
{
addListeners();
adjustText(document.getElementById("text"));
}
function addListeners()
{
document.body.onclick = clicked;
}
function adjustText(holder)
{
text = holder.innerHTML.split(" ");
holder.innerHTML = "";
for(var i=0;i
http://jsfiddle.net/AdwCA/2/