this is probably stupidly easy but I'm very new to JavaScript and it's driving me nuts.
My question, why doesn't this work: http://jsfiddle.net/Ye9tG/
<input type="button" id="butt" value="Button" onclick="getThought();"/>
It works fine if I add the onclick directly into the JavaScript:
document.getElementById("butt").onclick = getThought;
Thanks in advance.