I\'m sure there are a million posts about this out there, but surprisingly I\'m having trouble finding something.
I have a simple script where I want to set the onC
If you want to pass variables from the current function, another way to do this is, for example:
document.getElementById("space1").onclick = new Function("lrgWithInfo('"+myVar+"')");
If you don't need to pass information from this function, it's just:
document.getElementById("space1").onclick = new Function("lrgWithInfo('13')");